Home
last modified time | relevance | path

Searched refs:NLM_F_REPLACE (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.12.1/tools/include/uapi/linux/
Dnetlink.h68 #define NLM_F_REPLACE 0x100 /* Override existing */ macro
/linux-6.12.1/include/uapi/linux/
Dnetlink.h76 #define NLM_F_REPLACE 0x100 /* Override existing */ macro
/linux-6.12.1/tools/net/ynl/
Dcli.py49 const=Netlink.NLM_F_REPLACE)
/linux-6.12.1/Documentation/userspace-api/netlink/
Dintro.rst658 stray from it in one way or another. ``NLM_F_REPLACE`` asks to replace
663 exist, it can be combined with ``NLM_F_REPLACE`` and ``NLM_F_EXCL``.
668 4.4BSD CHANGE NLM_F_REPLACE
670 True CHANGE NLM_F_CREATE|NLM_F_REPLACE
675 ``NLM_F_REPLACE`` without ``NLM_F_CREATE`` was initially used instead
/linux-6.12.1/net/sched/
Dsch_api.c1053 old ? NLM_F_REPLACE : 0, RTM_NEWQDISC, extack) < 0) in qdisc_notify()
1588 n->nlmsg_flags & NLM_F_REPLACE); in req_create_or_replace()
1600 !(n->nlmsg_flags & NLM_F_REPLACE) && in req_change()
1656 if (q && !(n->nlmsg_flags & NLM_F_REPLACE)) { in tc_modify_qdisc()
Dact_api.c2137 if (n->nlmsg_flags & NLM_F_REPLACE) in tc_ctl_action()
/linux-6.12.1/net/bridge/
Dbr_mdb.c756 if (!(cfg->nlflags & NLM_F_REPLACE)) { in br_mdb_add_group_sg()
847 } else if (!(cfg->nlflags & NLM_F_REPLACE)) { in br_mdb_add_group_src()
981 if (!(cfg->nlflags & NLM_F_REPLACE)) { in br_mdb_add_group_star_g()
/linux-6.12.1/drivers/net/vxlan/
Dvxlan_mdb.c626 if ((nlmsg_flags & (NLM_F_CREATE | NLM_F_REPLACE)) && in vxlan_mdb_config_init()
847 } else if (!(cfg->nlflags & NLM_F_REPLACE)) { in vxlan_mdb_remote_src_add()
1130 if (!(cfg->nlflags & NLM_F_REPLACE)) { in vxlan_mdb_remote_add()
Dvxlan_core.c1022 if ((flags & NLM_F_REPLACE)) { in vxlan_fdb_update_existing()
1068 if ((flags & NLM_F_REPLACE) && rc) in vxlan_fdb_update_existing()
1090 if ((flags & NLM_F_REPLACE) && in vxlan_fdb_update_create()
4718 NLM_F_CREATE | NLM_F_REPLACE, in vxlan_fdb_external_learn_add()
/linux-6.12.1/net/netfilter/
Dnfnetlink_acct.c87 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) { in nfnl_acct_new()
Dnfnetlink_cttimeout.c132 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) { in cttimeout_new_timeout()
Dnf_tables_offload.c592 if (trans->flags & NLM_F_REPLACE || in nft_flow_rule_offload_commit()
Dnf_tables_api.c1458 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) in nf_tables_newtable()
2931 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) in nf_tables_newchain()
3537 if (ctx->flags & (NLM_F_APPEND | NLM_F_REPLACE)) in nf_tables_rule_notify()
4071 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) in nf_tables_newrule()
4077 info->nlh->nlmsg_flags & NLM_F_REPLACE) in nf_tables_newrule()
4179 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) { in nf_tables_newrule()
5243 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) in nf_tables_newset()
7860 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) in nf_tables_newobj()
/linux-6.12.1/net/ipv6/
Daddrlabel.c424 nlh->nlmsg_flags & NLM_F_REPLACE); in ip6addrlbl_newdel()
Dip6_fib.c1088 (info->nlh->nlmsg_flags & NLM_F_REPLACE)); in fib6_add_rt2node()
1297 inet6_rt_notify(RTM_NEWROUTE, rt, info, NLM_F_REPLACE); in fib6_add_rt2node()
1404 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) in fib6_add()
Droute.c5263 (cfg->fc_nlinfo.nlh->nlmsg_flags & NLM_F_REPLACE)); in ip6_route_multipath_add()
5266 nlflags = replace ? NLM_F_REPLACE : NLM_F_CREATE; in ip6_route_multipath_add()
5375 NLM_F_REPLACE); in ip6_route_multipath_add()
6211 RTM_NEWROUTE, info->portid, seq, NLM_F_REPLACE); in fib6_rt_update()
Dndisc.c1416 inet6_rt_notify(RTM_NEWROUTE, rt, &nlinfo, NLM_F_REPLACE); in ndisc_router_discovery()
/linux-6.12.1/net/ipv4/
Dfib_trie.c1288 if (cfg->fc_nlflags & NLM_F_REPLACE) { in fib_table_insert()
1292 nlflags |= NLM_F_REPLACE; in fib_table_insert()
2160 info, NLM_F_REPLACE); in __fib_info_notify_update()
Dnexthop.c1203 RTM_NEWNEXTHOPBUCKET, 0, 0, NLM_F_REPLACE, in nexthop_bucket_notify()
2548 bool replace = !!(cfg->nlflags & NLM_F_REPLACE); in insert_nexthop()
2918 if (cfg->nlflags & NLM_F_REPLACE && !cfg->nh_id) { in nexthop_add()
/linux-6.12.1/tools/lib/bpf/
Dnetlink.c748 flags = (flags & BPF_TC_F_REPLACE) ? NLM_F_REPLACE : NLM_F_EXCL; in bpf_tc_attach()
/linux-6.12.1/net/mpls/
Daf_mpls.c547 unsigned nlm_flags = (old && new) ? NLM_F_REPLACE : 0; in mpls_notify_route()
1000 if (!(cfg->rc_nlflags & NLM_F_REPLACE) && old) in mpls_route_add()
/linux-6.12.1/tools/net/ynl/lib/
Dynl.py41 NLM_F_REPLACE = 0x100 variable in Netlink
/linux-6.12.1/drivers/net/
Dmacvlan.c1039 if (flags & NLM_F_REPLACE) in macvlan_fdb_add()
Dgtp.c1889 if (info->nlhdr->nlmsg_flags & NLM_F_REPLACE) in gtp_pdp_add()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dtc_links.c1810 req.n.nlmsg_flags = NLM_F_CREATE | NLM_F_REPLACE | NLM_F_REQUEST; in qdisc_replace()

12