Home
last modified time | relevance | path

Searched refs:nlmsg_flags (Results 1 – 25 of 86) sorted by relevance

1234

/linux-6.12.1/tools/lib/bpf/
Dnetlink.c184 if (nh->nlmsg_flags & NLM_F_MULTI) in libbpf_netlink_recv()
272 .nh.nlmsg_flags = NLM_F_REQUEST, in libbpf_netlink_resolve_genl_family_id()
295 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in __bpf_set_link_xdp_fd_replace()
436 .nh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in bpf_xdp_query()
485 req.nh.nlmsg_flags = NLM_F_REQUEST; in bpf_xdp_query()
594 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | flags; in tc_qdisc_modify()
692 return __get_tc_info(cookie, tc, tb, nh->nlmsg_flags & NLM_F_ECHO); in get_tc_info()
753 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_CREATE | in bpf_tc_attach()
830 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in __bpf_tc_detach()
897 req.nh.nlmsg_flags = NLM_F_REQUEST; in bpf_tc_query()
Dnlattr.c170 if (!(nlh->nlmsg_flags & NLM_F_ACK_TLVS)) in libbpf_nla_dump_errormsg()
177 if (!(nlh->nlmsg_flags & NLM_F_CAPPED)) in libbpf_nla_dump_errormsg()
/linux-6.12.1/net/sched/
Dsch_api.c1024 n->nlmsg_flags & NLM_F_ECHO); in qdisc_get_notify()
1039 if (!rtnl_notify_needed(net, n->nlmsg_flags, RTNLGRP_TC)) in qdisc_notify()
1059 n->nlmsg_flags & NLM_F_ECHO); in qdisc_notify()
1587 return (n->nlmsg_flags & NLM_F_CREATE && in req_create_or_replace()
1588 n->nlmsg_flags & NLM_F_REPLACE); in req_create_or_replace()
1593 return (n->nlmsg_flags & NLM_F_CREATE && in req_create_exclusive()
1594 n->nlmsg_flags & NLM_F_EXCL); in req_create_exclusive()
1599 return (!(n->nlmsg_flags & NLM_F_CREATE) && in req_change()
1600 !(n->nlmsg_flags & NLM_F_REPLACE) && in req_change()
1601 !(n->nlmsg_flags & NLM_F_EXCL)); in req_change()
[all …]
Dact_api.c1786 nlh->nlmsg_flags |= NLM_F_ROOT; in tca_action_flush()
1789 n->nlmsg_flags & NLM_F_ECHO); in tca_action_flush()
1963 if (!rtnl_notify_needed(net, n->nlmsg_flags, RTNLGRP_TC)) { in tcf_del_notify()
1981 n->nlmsg_flags & NLM_F_ECHO); in tcf_del_notify()
1999 if (event == RTM_DELACTION && n->nlmsg_flags & NLM_F_ROOT) { in tca_action_gd()
2043 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, n->nlmsg_flags, in tcf_add_notify_msg()
2059 if (!rtnl_notify_needed(net, n->nlmsg_flags, RTNLGRP_TC)) { in tcf_add_notify()
2069 n->nlmsg_flags & NLM_F_ECHO); in tcf_add_notify()
2137 if (n->nlmsg_flags & NLM_F_REPLACE) in tc_ctl_action()
2257 nlh->nlmsg_flags |= NLM_F_MULTI; in tc_dump_action()
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/
Dnetlink.c149 req.nh.nlmsg_flags = flags; in __add_veth()
212 req.nh.nlmsg_flags = flags; in __ip_addr_add()
260 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_CREATE; in __ip_route_add()
319 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in __link_set_up()
363 req.nh.nlmsg_flags = flags; in __add_vrf()
/linux-6.12.1/crypto/
Dcrypto_user.c32 u16 nlmsg_flags; member
163 CRYPTO_MSG_GETALG, sizeof(*ualg), info->nlmsg_flags); in crypto_report_alg()
208 info.nlmsg_flags = 0; in crypto_report()
234 info.nlmsg_flags = NLM_F_MULTI; in crypto_dump_report()
444 (nlh->nlmsg_flags & NLM_F_DUMP))) { in crypto_user_rcv_msg()
/linux-6.12.1/drivers/infiniband/core/
Dnetlink.c185 if ((nlh->nlmsg_flags & NLM_F_DUMP) || index == RDMA_NL_IWCM) { in rdma_nl_rcv_msg()
231 if (!(nlh->nlmsg_flags & NLM_F_REQUEST) && in rdma_nl_rcv_skb()
244 if (nlh->nlmsg_flags & NLM_F_ACK || err) in rdma_nl_rcv_skb()
/linux-6.12.1/net/ipv4/
Dinet_diag.c240 u16 nlmsg_flags, bool net_admin) in inet_sk_diag_fill() argument
262 cb->nlh->nlmsg_type, sizeof(*r), nlmsg_flags); in inet_sk_diag_fill()
426 u16 nlmsg_flags, bool net_admin) in inet_twsk_diag_fill() argument
435 sizeof(*r), nlmsg_flags); in inet_twsk_diag_fill()
466 u16 nlmsg_flags, bool net_admin) in inet_req_diag_fill() argument
474 cb->nlh->nlmsg_type, sizeof(*r), nlmsg_flags); in inet_req_diag_fill()
507 u16 nlmsg_flags, bool net_admin) in sk_diag_fill() argument
510 return inet_twsk_diag_fill(sk, skb, cb, nlmsg_flags, net_admin); in sk_diag_fill()
513 return inet_req_diag_fill(sk, skb, cb, nlmsg_flags, net_admin); in sk_diag_fill()
515 return inet_sk_diag_fill(sk, inet_csk(sk), skb, cb, r, nlmsg_flags, in sk_diag_fill()
[all …]
/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()
226 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in conntracK_count_zone()
273 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in conntrack_flush_zone()
Dnf_queue.c131 nlh->nlmsg_flags = NLM_F_REQUEST; in nfq_build_cfg_request()
155 nlh->nlmsg_flags = NLM_F_REQUEST; in nfq_build_cfg_params()
179 nlh->nlmsg_flags = NLM_F_REQUEST; in nfq_build_verdict()
Daudit_logread.c55 .nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK, in audit_send()
/linux-6.12.1/tools/testing/selftests/net/
Dipsec.c322 req.nh.nlmsg_flags = flags; in veth_add()
370 req.nh.nlmsg_flags = flags; in ip4_addr_set()
410 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in link_set_up()
438 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_CREATE; in ip4_route_set()
927 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in xfrm_state_add()
1026 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in xfrm_state_check()
1111 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in xfrm_policy_add()
1184 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in xfrm_policy_del()
1235 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in xfrm_state_del()
1291 req.nh.nlmsg_flags = NLM_F_REQUEST; in xfrm_state_allocspi()
[all …]
Dnetlink-dumps.c30 .nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_DUMP,
/linux-6.12.1/tools/bpf/bpftool/
Dnet.c183 if (nh->nlmsg_flags & NLM_F_MULTI) in netlink_recv()
235 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_class()
274 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_qdisc()
313 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_filter()
352 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_link()
/linux-6.12.1/net/tipc/
Ddiag.c85 if (h->nlmsg_flags & NLM_F_DUMP) { in tipc_sock_diag_handler_dump()
/linux-6.12.1/net/netfilter/
Dnfnetlink.c430 if (nlh->nlmsg_flags & NLM_F_ACK) { in nfnetlink_rcv_batch()
458 if (!(nlh->nlmsg_flags & NLM_F_REQUEST)) { in nfnetlink_rcv_batch()
536 if (nlh->nlmsg_flags & NLM_F_ACK || err) { in nfnetlink_rcv_batch()
581 } else if (nlh->nlmsg_flags & NLM_F_ACK) { in nfnetlink_rcv_batch()
Dnfnetlink_acct.c79 if (info->nlh->nlmsg_flags & NLM_F_EXCL) in nfnl_acct_new()
87 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) { in nfnl_acct_new()
282 if (info->nlh->nlmsg_flags & NLM_F_DUMP) { in nfnl_acct_get()
Dnfnetlink_cttimeout.c124 if (info->nlh->nlmsg_flags & NLM_F_EXCL) in cttimeout_new_timeout()
132 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) { in cttimeout_new_timeout()
272 if (info->nlh->nlmsg_flags & NLM_F_DUMP) { in cttimeout_get_timeout()
Dnfnetlink_osf.c313 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE)) in nfnl_osf_add_callback()
339 if (info->nlh->nlmsg_flags & NLM_F_EXCL) in nfnl_osf_add_callback()
/linux-6.12.1/Documentation/userspace-api/netlink/
Dintro.rst115 __u16 nlmsg_flags; /* Flags - request or dump */
149 are initiated by the user. :c:member:`nlmsghdr.nlmsg_flags` should
219 is indicated by ``NLM_F_CAPPED`` in :c:member:`nlmsghdr.nlmsg_flags`.
224 :c:member:`nlmsghdr.nlmsg_flags`.
266 __u16 nlmsg_flags: NLM_F_REQUEST | NLM_F_ACK // (2)
296 __u16 nlmsg_flags: 0
334 __u16 nlmsg_flags: NLM_F_CAPPED /* There won't be a payload */
343 __u16 nlmsg_flags: NLM_F_REQUEST | NLM_F_ACK
453 __u16 nlmsg_flags: 0
645 and ``DEL`` requests in the upper byte of nlmsg_flags in struct nlmsghdr.
/linux-6.12.1/drivers/scsi/
Dscsi_netlink.c99 if ((err) || (nlh->nlmsg_flags & NLM_F_ACK)) in scsi_nl_rcv_msg()
/linux-6.12.1/include/linux/
Dinet_diag.h50 u16 nlmsg_flags, bool net_admin);
/linux-6.12.1/tools/include/uapi/linux/
Dnetlink.h47 __u16 nlmsg_flags; /* Additional flags */ member
/linux-6.12.1/tools/net/ynl/lib/
Dynl.c149 if (!(nlh->nlmsg_flags & NLM_F_ACK_TLVS)) { in ynl_ext_ack_check()
271 if (!(nlh->nlmsg_flags & NLM_F_CAPPED)) in ynl_cb_error()
404 nlh->nlmsg_flags = flags; in ynl_msg_start()
509 if (nlh->nlmsg_flags & NLM_F_DUMP_INTR) { in __ynl_sock_read_msgs()
/linux-6.12.1/include/uapi/linux/
Dnetlink.h55 __u16 nlmsg_flags; member

1234