/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | netlink.c | 137 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/tools/include/uapi/linux/ |
H A D | netlink.h | 70 #define NLM_F_CREATE 0x400 /* Create, if it does not exist */ macro
|
/linux/include/uapi/linux/ |
H A D | netlink.h | 78 #define NLM_F_CREATE 0x400 /* Create, if it does not exist */ macro
|
/linux/Documentation/userspace-api/netlink/ |
H A D | intro.rst | 662 ``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/tools/testing/selftests/bpf/prog_tests/ |
H A D | xfrm_info.c | 219 nh->nlmsg_flags |= NLM_F_CREATE | NLM_F_REQUEST; in setup_xfrmi_external_dev()
|
H A D | tc_redirect.c | 180 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE | NLM_F_EXCL; in create_netkit()
|
H A D | tc_links.c | 1810 req.n.nlmsg_flags = NLM_F_CREATE | NLM_F_REPLACE | NLM_F_REQUEST; in qdisc_replace()
|
/linux/net/sched/ |
H A D | sch_api.c | 1587 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() 1762 if (!(n->nlmsg_flags & NLM_F_CREATE)) { in tc_modify_qdisc() 2229 !(n->nlmsg_flags & NLM_F_CREATE)) in tc_ctl_tclass()
|
H A D | cls_api.c | 656 tc_chain_notify(chain, NULL, 0, NLM_F_CREATE | NLM_F_EXCL, in __tcf_chain_get() 2255 if (n->nlmsg_flags & NLM_F_CREATE) { in tc_new_tfilter() 2336 if (!(n->nlmsg_flags & NLM_F_CREATE)) { in tc_new_tfilter() 2374 if (!(n->nlmsg_flags & NLM_F_CREATE)) { in tc_new_tfilter() 2393 if (!(n->nlmsg_flags & NLM_F_CREATE)) in tc_new_tfilter() 3133 if (!(n->nlmsg_flags & NLM_F_CREATE)) { in tc_ctl_chain() 3173 tc_chain_notify(chain, NULL, 0, NLM_F_CREATE | NLM_F_EXCL, in tc_ctl_chain()
|
/linux/net/netfilter/ |
H A D | nfnetlink_osf.c | 313 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE)) in nfnl_osf_add_callback()
|
H A D | nf_tables_api.c | 1186 if (ctx->flags & (NLM_F_CREATE | NLM_F_EXCL)) in nf_tables_table_notify() 1187 flags |= ctx->flags & (NLM_F_CREATE | NLM_F_EXCL); in nf_tables_table_notify() 2056 if (ctx->flags & (NLM_F_CREATE | NLM_F_EXCL)) in nf_tables_chain_notify() 2057 flags |= ctx->flags & (NLM_F_CREATE | NLM_F_EXCL); in nf_tables_chain_notify() 3658 if (ctx->flags & (NLM_F_CREATE | NLM_F_EXCL)) in nf_tables_rule_notify() 3659 flags |= ctx->flags & (NLM_F_CREATE | NLM_F_EXCL); in nf_tables_rule_notify() 4199 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE) || in nf_tables_newrule() 4891 if (ctx->flags & (NLM_F_CREATE | NLM_F_EXCL)) in nf_tables_set_notify() 4892 flags |= ctx->flags & (NLM_F_CREATE | NLM_F_EXCL); in nf_tables_set_notify() 5414 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE)) in nf_tables_newset() [all …]
|
/linux/tools/lib/bpf/ |
H A D | netlink.c | 608 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/tools/testing/selftests/net/ |
H A D | tap.c | 103 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE; in dev_create()
|
/linux/net/ipv4/ |
H A D | fib_frontend.c | 519 cfg->fc_nlflags = NLM_F_CREATE; in rtentry_to_fib_config() 1091 .fc_nlflags = NLM_F_CREATE | NLM_F_APPEND, in fib_magic()
|
H A D | nexthop.c | 2549 bool create = !!(cfg->nlflags & NLM_F_CREATE); in insert_nexthop()
|
/linux/drivers/net/vxlan/ |
H A D | vxlan_vnifilter.c | 495 NLM_F_APPEND | NLM_F_CREATE, in vxlan_update_default_fdb_entry()
|
H A D | vxlan_core.c | 1136 if (!(flags & NLM_F_CREATE)) in vxlan_fdb_update() 1496 NLM_F_EXCL|NLM_F_CREATE, in vxlan_snoop() 4450 NLM_F_APPEND | NLM_F_CREATE, in vxlan_changelink() 4803 NLM_F_CREATE | NLM_F_REPLACE, in vxlan_fdb_external_learn_add()
|
/linux/net/mpls/ |
H A D | af_mpls.c | 979 (cfg->rc_nlflags & NLM_F_CREATE)) { in mpls_route_add() 1004 if (!(cfg->rc_nlflags & NLM_F_CREATE) && !old) in mpls_route_add()
|
/linux/net/ipv6/ |
H A D | route.c | 3752 !(cfg->fc_nlinfo.nlh->nlmsg_flags & NLM_F_CREATE)) { in ip6_route_info_create() 5282 nlflags = replace ? NLM_F_REPLACE : NLM_F_CREATE; in ip6_route_multipath_add() 5392 cfg->fc_nlinfo.nlh->nlmsg_flags |= NLM_F_CREATE; in ip6_route_multipath_add()
|
/linux/net/openvswitch/ |
H A D | datapath.c | 1078 if (unlikely(info->nlhdr->nlmsg_flags & (NLM_F_CREATE in ovs_flow_cmd_new()
|
/linux/net/core/ |
H A D | neighbour.c | 2016 if (!(nlh->nlmsg_flags & NLM_F_CREATE)) { in neigh_add()
|
H A D | rtnetlink.c | 3887 if (!(nlh->nlmsg_flags & NLM_F_CREATE)) { in __rtnl_newlink()
|