/linux-6.12.1/tools/bpf/bpftool/ |
D | net.c | 109 static int netlink_open(__u32 *nl_pid) in netlink_open() argument 144 *nl_pid = sa.nl_pid; in netlink_open() 152 static int netlink_recv(int sock, __u32 nl_pid, __u32 seq, in netlink_recv() argument 175 if (nh->nlmsg_pid != nl_pid) { in netlink_recv() 226 static int netlink_get_class(int sock, unsigned int nl_pid, int ifindex, in netlink_get_class() argument 245 return netlink_recv(sock, nl_pid, seq, __dump_class_nlmsg, in netlink_get_class() 265 static int netlink_get_qdisc(int sock, unsigned int nl_pid, int ifindex, in netlink_get_qdisc() argument 284 return netlink_recv(sock, nl_pid, seq, __dump_qdisc_nlmsg, in netlink_get_qdisc() 304 static int netlink_get_filter(int sock, unsigned int nl_pid, int ifindex, int handle, in netlink_get_filter() argument 324 return netlink_recv(sock, nl_pid, seq, __dump_filter_nlmsg, in netlink_get_filter() [all …]
|
/linux-6.12.1/tools/lib/bpf/ |
D | netlink.c | 52 static int libbpf_netlink_open(__u32 *nl_pid, int proto) in libbpf_netlink_open() argument 87 *nl_pid = sa.nl_pid; in libbpf_netlink_open() 132 static int libbpf_netlink_recv(int sock, __u32 nl_pid, int seq, in libbpf_netlink_recv() argument 176 if (nh->nlmsg_pid != nl_pid) { in libbpf_netlink_recv() 227 __u32 nl_pid = 0; in libbpf_netlink_send_recv() local 230 sock = libbpf_netlink_open(&nl_pid, proto); in libbpf_netlink_send_recv() 242 ret = libbpf_netlink_recv(sock, nl_pid, req->nh.nlmsg_seq, in libbpf_netlink_send_recv()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | netlink_helpers.c | 207 if (nladdr.nl_pid != 0 || in __rtnl_talk_iov() 208 h->nlmsg_pid != rtnl->local.nl_pid || in __rtnl_talk_iov()
|
/linux-6.12.1/tools/testing/selftests/net/netfilter/ |
D | audit_logread.c | 41 addr.nl_pid != 0 || in audit_recv()
|
/linux-6.12.1/tools/include/uapi/linux/ |
D | netlink.h | 40 __u32 nl_pid; /* port ID */ member
|
/linux-6.12.1/include/uapi/linux/ |
D | netlink.h | 40 __u32 nl_pid; /* port ID */ member
|
/linux-6.12.1/samples/connector/ |
D | ucon.c | 147 l_local.nl_pid = 0; in main()
|
/linux-6.12.1/net/netlink/ |
D | af_netlink.c | 1017 if (nladdr->nl_pid != nlk->portid) in netlink_bind() 1041 err = nladdr->nl_pid ? in netlink_bind() 1042 netlink_insert(sk, nladdr->nl_pid) : in netlink_bind() 1094 if ((nladdr->nl_groups || nladdr->nl_pid) && in netlink_connect() 1109 WRITE_ONCE(nlk->dst_portid, nladdr->nl_pid); in netlink_connect() 1128 nladdr->nl_pid = READ_ONCE(nlk->dst_portid); in netlink_getname() 1132 nladdr->nl_pid = READ_ONCE(nlk->portid); in netlink_getname() 1834 dst_portid = addr->nl_pid; in netlink_sendmsg() 1949 addr->nl_pid = NETLINK_CB(skb).portid; in netlink_recvmsg()
|
/linux-6.12.1/tools/testing/selftests/connector/ |
D | proc_filter.c | 98 sa_nl.nl_pid = getpid(); in register_proc_netlink()
|
/linux-6.12.1/Documentation/driver-api/ |
D | connector.rst | 121 l_local.nl_pid = 0;
|
/linux-6.12.1/tools/net/ynl/lib/ |
D | ynl.c | 708 ys->portid = addr.nl_pid; in ynl_sock_create()
|