Home
last modified time | relevance | path

Searched refs:nl_pid (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/tools/bpf/bpftool/
Dnet.c109 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/
Dnetlink.c52 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/
Dnetlink_helpers.c207 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/
Daudit_logread.c41 addr.nl_pid != 0 || in audit_recv()
/linux-6.12.1/tools/include/uapi/linux/
Dnetlink.h40 __u32 nl_pid; /* port ID */ member
/linux-6.12.1/include/uapi/linux/
Dnetlink.h40 __u32 nl_pid; /* port ID */ member
/linux-6.12.1/samples/connector/
Ducon.c147 l_local.nl_pid = 0; in main()
/linux-6.12.1/net/netlink/
Daf_netlink.c1017 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/
Dproc_filter.c98 sa_nl.nl_pid = getpid(); in register_proc_netlink()
/linux-6.12.1/Documentation/driver-api/
Dconnector.rst121 l_local.nl_pid = 0;
/linux-6.12.1/tools/net/ynl/lib/
Dynl.c708 ys->portid = addr.nl_pid; in ynl_sock_create()