Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/tcp_ao/lib/
H A 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/tools/include/uapi/linux/
H A Dnetlink.h70 #define NLM_F_CREATE 0x400 /* Create, if it does not exist */ macro
/linux/include/uapi/linux/
H A Dnetlink.h78 #define NLM_F_CREATE 0x400 /* Create, if it does not exist */ macro
/linux/Documentation/userspace-api/netlink/
H A 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/tools/testing/selftests/bpf/prog_tests/
H A Dxfrm_info.c219 nh->nlmsg_flags |= NLM_F_CREATE | NLM_F_REQUEST; in setup_xfrmi_external_dev()
H A Dtc_redirect.c180 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE | NLM_F_EXCL; in create_netkit()
H A Dtc_links.c1810 req.n.nlmsg_flags = NLM_F_CREATE | NLM_F_REPLACE | NLM_F_REQUEST; in qdisc_replace()
/linux/net/sched/
H A 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()
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 Dcls_api.c656 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 Dnfnetlink_osf.c313 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE)) in nfnl_osf_add_callback()
H A Dnf_tables_api.c1186 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 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/tools/testing/selftests/net/
H A Dtap.c103 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE; in dev_create()
/linux/net/ipv4/
H A Dfib_frontend.c519 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 Dnexthop.c2549 bool create = !!(cfg->nlflags & NLM_F_CREATE); in insert_nexthop()
/linux/drivers/net/vxlan/
H A Dvxlan_vnifilter.c495 NLM_F_APPEND | NLM_F_CREATE, in vxlan_update_default_fdb_entry()
H A Dvxlan_core.c1136 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 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()
/linux/net/ipv6/
H A Droute.c3752 !(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 Ddatapath.c1078 if (unlikely(info->nlhdr->nlmsg_flags & (NLM_F_CREATE in ovs_flow_cmd_new()
/linux/net/core/
H A Dneighbour.c2016 if (!(nlh->nlmsg_flags & NLM_F_CREATE)) { in neigh_add()
H A Drtnetlink.c3887 if (!(nlh->nlmsg_flags & NLM_F_CREATE)) { in __rtnl_newlink()