Home
last modified time | relevance | path

Searched refs:NLM_F_CREATE (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/
Dnetlink.c137 uint16_t flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_EXCL | NLM_F_CREATE; in __add_veth()
200 uint16_t flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_EXCL | NLM_F_CREATE; in __ip_addr_add()
260 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_CREATE; in __ip_route_add()
351 uint16_t flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_EXCL | NLM_F_CREATE; in __add_vrf()
/linux-6.12.1/net/ieee802154/
Dnl-mac.c887 if ((info->nlhdr->nlmsg_flags & (NLM_F_CREATE | NLM_F_EXCL)) != in ieee802154_llsec_add_key()
888 (NLM_F_CREATE | NLM_F_EXCL)) in ieee802154_llsec_add_key()
1022 if ((info->nlhdr->nlmsg_flags & (NLM_F_CREATE | NLM_F_EXCL)) != in ieee802154_llsec_add_dev()
1023 (NLM_F_CREATE | NLM_F_EXCL)) in ieee802154_llsec_add_dev()
1127 if ((info->nlhdr->nlmsg_flags & (NLM_F_CREATE | NLM_F_EXCL)) != in ieee802154_llsec_add_devkey()
1128 (NLM_F_CREATE | NLM_F_EXCL)) in ieee802154_llsec_add_devkey()
1261 if ((info->nlhdr->nlmsg_flags & (NLM_F_CREATE | NLM_F_EXCL)) != in ieee802154_llsec_add_seclevel()
1262 (NLM_F_CREATE | NLM_F_EXCL)) in ieee802154_llsec_add_seclevel()
/linux-6.12.1/tools/include/uapi/linux/
Dnetlink.h70 #define NLM_F_CREATE 0x400 /* Create, if it does not exist */ macro
/linux-6.12.1/tools/testing/selftests/net/netfilter/
Dconntrack_dump_flush.c149 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE | in conntrack_data_generate_v4()
183 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE | in conntrack_data_generate_v6()
/linux-6.12.1/include/uapi/linux/
Dnetlink.h78 #define NLM_F_CREATE 0x400 /* Create, if it does not exist */ macro
/linux-6.12.1/tools/net/ynl/
Dcli.py53 const=Netlink.NLM_F_CREATE)
/linux-6.12.1/Documentation/userspace-api/netlink/
Dintro.rst662 ``NLM_F_CREATE`` asks for the object to be created if it does not
667 4.4BSD ADD NLM_F_CREATE|NLM_F_EXCL
670 True CHANGE NLM_F_CREATE|NLM_F_REPLACE
671 Append NLM_F_CREATE
675 ``NLM_F_REPLACE`` without ``NLM_F_CREATE`` was initially used instead
677 ``NLM_F_EXCL`` without ``NLM_F_CREATE`` was used to check if object exists
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dxfrm_info.c219 nh->nlmsg_flags |= NLM_F_CREATE | NLM_F_REQUEST; in setup_xfrmi_external_dev()
Dtc_netkit.c50 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE | NLM_F_EXCL; in create_netkit()
Dtc_redirect.c180 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE | NLM_F_EXCL; in create_netkit()
/linux-6.12.1/net/sched/
Dsch_api.c1587 return (n->nlmsg_flags & NLM_F_CREATE && in req_create_or_replace()
1593 return (n->nlmsg_flags & NLM_F_CREATE && in req_create_exclusive()
1599 return (!(n->nlmsg_flags & NLM_F_CREATE) && in req_change()
1758 if (!(n->nlmsg_flags & NLM_F_CREATE)) { in tc_modify_qdisc()
2225 !(n->nlmsg_flags & NLM_F_CREATE)) in tc_ctl_tclass()
Dcls_api.c663 tc_chain_notify(chain, NULL, 0, NLM_F_CREATE | NLM_F_EXCL, in __tcf_chain_get()
2256 if (n->nlmsg_flags & NLM_F_CREATE) { in tc_new_tfilter()
2338 if (!(n->nlmsg_flags & NLM_F_CREATE)) { in tc_new_tfilter()
2376 if (!(n->nlmsg_flags & NLM_F_CREATE)) { in tc_new_tfilter()
2395 if (!(n->nlmsg_flags & NLM_F_CREATE)) in tc_new_tfilter()
3129 if (!(n->nlmsg_flags & NLM_F_CREATE)) { in tc_ctl_chain()
3169 tc_chain_notify(chain, NULL, 0, NLM_F_CREATE | NLM_F_EXCL, in tc_ctl_chain()
/linux-6.12.1/net/netfilter/
Dnfnetlink_osf.c313 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE)) in nfnl_osf_add_callback()
Dnf_tables_api.c1087 if (ctx->flags & (NLM_F_CREATE | NLM_F_EXCL)) in nf_tables_table_notify()
1088 flags |= ctx->flags & (NLM_F_CREATE | NLM_F_EXCL); in nf_tables_table_notify()
1955 if (ctx->flags & (NLM_F_CREATE | NLM_F_EXCL)) in nf_tables_chain_notify()
1956 flags |= ctx->flags & (NLM_F_CREATE | NLM_F_EXCL); in nf_tables_chain_notify()
3539 if (ctx->flags & (NLM_F_CREATE | NLM_F_EXCL)) in nf_tables_rule_notify()
3540 flags |= ctx->flags & (NLM_F_CREATE | NLM_F_EXCL); in nf_tables_rule_notify()
4076 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE) || in nf_tables_newrule()
4757 if (ctx->flags & (NLM_F_CREATE | NLM_F_EXCL)) in nf_tables_set_notify()
4758 flags |= ctx->flags & (NLM_F_CREATE | NLM_F_EXCL); in nf_tables_set_notify()
5268 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE)) in nf_tables_newset()
[all …]
Dnf_conntrack_netlink.c741 flags = NLM_F_CREATE|NLM_F_EXCL; in ctnetlink_conntrack_event()
2426 if (info->nlh->nlmsg_flags & NLM_F_CREATE) { in ctnetlink_new_conntrack()
3113 flags = NLM_F_CREATE|NLM_F_EXCL; in ctnetlink_expect_event()
3672 if (info->nlh->nlmsg_flags & NLM_F_CREATE) { in ctnetlink_new_expect()
/linux-6.12.1/tools/lib/bpf/
Dnetlink.c608 return tc_qdisc_modify(hook, RTM_NEWQDISC, NLM_F_CREATE | NLM_F_EXCL); in tc_qdisc_create_excl()
753 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_CREATE | in bpf_tc_attach()
/linux-6.12.1/tools/testing/selftests/net/
Dtap.c103 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE; in dev_create()
Dipsec.c310 uint16_t flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_EXCL | NLM_F_CREATE; in veth_add()
360 uint16_t flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_EXCL | NLM_F_CREATE; in ip4_addr_set()
438 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_CREATE; in ip4_route_set()
/linux-6.12.1/net/ipv4/
Dfib_frontend.c511 cfg->fc_nlflags = NLM_F_CREATE; in rtentry_to_fib_config()
1083 .fc_nlflags = NLM_F_CREATE | NLM_F_APPEND, in fib_magic()
Dfib_trie.c1358 if (!(cfg->fc_nlflags & NLM_F_CREATE)) in fib_table_insert()
1361 nlflags |= NLM_F_CREATE; in fib_table_insert()
/linux-6.12.1/net/ipv6/
Dip6_fib.c1090 (info->nlh->nlmsg_flags & NLM_F_CREATE)); in fib6_add_rt2node()
1224 nlflags |= NLM_F_CREATE; in fib6_add_rt2node()
1402 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE)) in fib6_add()
/linux-6.12.1/drivers/net/vxlan/
Dvxlan_mdb.c626 if ((nlmsg_flags & (NLM_F_CREATE | NLM_F_REPLACE)) && in vxlan_mdb_config_init()
1137 if (!(cfg->nlflags & NLM_F_CREATE)) { in vxlan_mdb_remote_add()
Dvxlan_vnifilter.c490 NLM_F_APPEND | NLM_F_CREATE, in vxlan_update_default_fdb_entry()
Dvxlan_core.c1136 if (!(flags & NLM_F_CREATE)) in vxlan_fdb_update()
1492 NLM_F_EXCL|NLM_F_CREATE, in vxlan_snoop()
4372 NLM_F_APPEND | NLM_F_CREATE, in vxlan_changelink()
4718 NLM_F_CREATE | NLM_F_REPLACE, in vxlan_fdb_external_learn_add()
/linux-6.12.1/net/mpls/
Daf_mpls.c979 (cfg->rc_nlflags & NLM_F_CREATE)) { in mpls_route_add()
1004 if (!(cfg->rc_nlflags & NLM_F_CREATE) && !old) in mpls_route_add()

12