Home
last modified time | relevance | path

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

/external/libnfnetlink/src/
Drtnl.c117 struct sockaddr_nl nladdr; in rtnl_dump_type() local
119 memset(&nladdr, 0, sizeof(nladdr)); in rtnl_dump_type()
121 nladdr.nl_family = AF_NETLINK; in rtnl_dump_type()
131 (struct sockaddr*)&nladdr, sizeof(nladdr)); in rtnl_dump_type()
139 struct sockaddr_nl nladdr; in rtnl_receive() local
144 .msg_name = &nladdr, in rtnl_receive()
145 .msg_namelen = sizeof(nladdr), in rtnl_receive()
161 if (msg.msg_namelen != sizeof(nladdr)) { in rtnl_receive()
Dlibnfnetlink.c648 struct sockaddr_nl nladdr; in nfnl_listen() local
657 .msg_name = &nladdr, in nfnl_listen()
658 .msg_namelen = sizeof(nladdr), in nfnl_listen()
663 memset(&nladdr, 0, sizeof(nladdr)); in nfnl_listen()
664 nladdr.nl_family = AF_NETLINK; in nfnl_listen()
685 if (msg.msg_namelen != sizeof(nladdr)) { in nfnl_listen()
716 err = handler(&nladdr, h, jarg); in nfnl_listen()
759 struct sockaddr_nl nladdr; in nfnl_talk() local
767 .msg_name = &nladdr, in nfnl_talk()
768 .msg_namelen = sizeof(nladdr), in nfnl_talk()
[all …]
/external/iputils/ninfod/
Dni_ifaddrs.c116 struct sockaddr_nl nladdr; in nl_sendreq() local
132 memset(&nladdr, 0, sizeof(nladdr)); in nl_sendreq()
133 nladdr.nl_family = AF_NETLINK; in nl_sendreq()
134 …(sendto(sd, (void *) req_hdr, req_hdr->nlmsg_len, 0, (struct sockaddr *) &nladdr, sizeof(nladdr))); in nl_sendreq()
141 struct sockaddr_nl nladdr; in nl_recvmsg() local
145 msg.msg_name = (void *) &nladdr; in nl_recvmsg()
146 msg.msg_namelen = sizeof(nladdr); in nl_recvmsg()
297 struct sockaddr_nl nladdr; in nl_open() local
303 memset(&nladdr, 0, sizeof(nladdr)); in nl_open()
304 nladdr.nl_family = AF_NETLINK; in nl_open()
[all …]
/external/strace/tests-m32/
Dnetlink_netlink_diag.c44 struct sockaddr_nl nladdr = { in send_query() local
67 .msg_name = (void *) &nladdr, in send_query()
68 .msg_namelen = sizeof(nladdr), in send_query()
85 struct sockaddr_nl nladdr = { in check_responses() local
93 .msg_name = (void *) &nladdr, in check_responses()
94 .msg_namelen = sizeof(nladdr), in check_responses()
Dnetlink_inet_diag.c43 struct sockaddr_nl nladdr = { in send_query() local
66 .msg_name = (void *) &nladdr, in send_query()
67 .msg_namelen = sizeof(nladdr), in send_query()
84 struct sockaddr_nl nladdr = { in check_responses() local
92 .msg_name = (void *) &nladdr, in check_responses()
93 .msg_namelen = sizeof(nladdr), in check_responses()
Dnetlink_unix_diag.c47 struct sockaddr_nl nladdr = { in send_query() local
70 .msg_name = (void *) &nladdr, in send_query()
71 .msg_namelen = sizeof(nladdr), in send_query()
88 struct sockaddr_nl nladdr = { in check_responses() local
96 .msg_name = (void *) &nladdr, in check_responses()
97 .msg_namelen = sizeof(nladdr), in check_responses()
/external/strace/tests-mx32/
Dnetlink_netlink_diag.c44 struct sockaddr_nl nladdr = { in send_query() local
67 .msg_name = (void *) &nladdr, in send_query()
68 .msg_namelen = sizeof(nladdr), in send_query()
85 struct sockaddr_nl nladdr = { in check_responses() local
93 .msg_name = (void *) &nladdr, in check_responses()
94 .msg_namelen = sizeof(nladdr), in check_responses()
Dnetlink_unix_diag.c47 struct sockaddr_nl nladdr = { in send_query() local
70 .msg_name = (void *) &nladdr, in send_query()
71 .msg_namelen = sizeof(nladdr), in send_query()
88 struct sockaddr_nl nladdr = { in check_responses() local
96 .msg_name = (void *) &nladdr, in check_responses()
97 .msg_namelen = sizeof(nladdr), in check_responses()
Dnetlink_inet_diag.c43 struct sockaddr_nl nladdr = { in send_query() local
66 .msg_name = (void *) &nladdr, in send_query()
67 .msg_namelen = sizeof(nladdr), in send_query()
84 struct sockaddr_nl nladdr = { in check_responses() local
92 .msg_name = (void *) &nladdr, in check_responses()
93 .msg_namelen = sizeof(nladdr), in check_responses()
/external/strace/tests/
Dnetlink_netlink_diag.c44 struct sockaddr_nl nladdr = { in send_query() local
67 .msg_name = (void *) &nladdr, in send_query()
68 .msg_namelen = sizeof(nladdr), in send_query()
85 struct sockaddr_nl nladdr = { in check_responses() local
93 .msg_name = (void *) &nladdr, in check_responses()
94 .msg_namelen = sizeof(nladdr), in check_responses()
Dnetlink_unix_diag.c47 struct sockaddr_nl nladdr = { in send_query() local
70 .msg_name = (void *) &nladdr, in send_query()
71 .msg_namelen = sizeof(nladdr), in send_query()
88 struct sockaddr_nl nladdr = { in check_responses() local
96 .msg_name = (void *) &nladdr, in check_responses()
97 .msg_namelen = sizeof(nladdr), in check_responses()
Dnetlink_inet_diag.c43 struct sockaddr_nl nladdr = { in send_query() local
66 .msg_name = (void *) &nladdr, in send_query()
67 .msg_namelen = sizeof(nladdr), in send_query()
84 struct sockaddr_nl nladdr = { in check_responses() local
92 .msg_name = (void *) &nladdr, in check_responses()
93 .msg_namelen = sizeof(nladdr), in check_responses()
/external/iproute2/lib/
Dlibnetlink.c323 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in rtnl_dump_request() local
329 .msg_name = &nladdr, in rtnl_dump_request()
330 .msg_namelen = sizeof(nladdr), in rtnl_dump_request()
340 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in rtnl_dump_request_n() local
346 .msg_name = &nladdr, in rtnl_dump_request_n()
347 .msg_namelen = sizeof(nladdr), in rtnl_dump_request_n()
410 struct sockaddr_nl nladdr; in rtnl_dump_filter_l() local
413 .msg_name = &nladdr, in rtnl_dump_filter_l()
414 .msg_namelen = sizeof(nladdr), in rtnl_dump_filter_l()
457 if (nladdr.nl_pid != 0 || in rtnl_dump_filter_l()
[all …]
/external/selinux/libselinux/src/
Davc_internal.c103 struct sockaddr_nl nladdr; in avc_netlink_receive() local
104 socklen_t nladdrlen = sizeof nladdr; in avc_netlink_receive()
121 rc = recvfrom(fd, buf, buflen, 0, (struct sockaddr *)&nladdr, in avc_netlink_receive()
126 if (nladdrlen != sizeof nladdr) { in avc_netlink_receive()
133 if (nladdr.nl_pid) { in avc_netlink_receive()
136 avc_prefix, nladdr.nl_pid); in avc_netlink_receive()
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c130 struct sockaddr_nl nladdr; in recvaddrs() local
141 (void*)&nladdr, sizeof(nladdr), in recvaddrs()
155 if (nladdr.nl_pid) /* Message not from kernel */ in recvaddrs()
224 struct sockaddr_nl nladdr; in getifaddrs() local
233 memset(&nladdr, 0, sizeof(nladdr)); in getifaddrs()
234 nladdr.nl_family = AF_NETLINK; in getifaddrs()
243 if (sendto(fd, (void*)&req, sizeof(req), 0, (struct sockaddr*)&nladdr, sizeof(nladdr)) < 0) { in getifaddrs()
/external/ltp/testcases/kernel/controllers/cgroup/
Dgetdelays.c130 struct sockaddr_nl nladdr; in send_cmd() local
151 memset(&nladdr, 0, sizeof(nladdr)); in send_cmd()
152 nladdr.nl_family = AF_NETLINK; in send_cmd()
153 while ((r = sendto(sd, buf, buflen, 0, (struct sockaddr *)&nladdr, in send_cmd()
154 sizeof(nladdr))) < buflen) { in send_cmd()
/external/dnsmasq/src/
Dnetlink.c78 struct sockaddr_nl nladdr; in netlink_recv() local
85 msg.msg_name = &nladdr; in netlink_recv()
86 msg.msg_namelen = sizeof(nladdr); in netlink_recv()
111 if (rc == -1 || nladdr.nl_pid == 0) in netlink_recv()
/external/strace/
Dsocketutils.c92 struct sockaddr_nl nladdr = { in send_query() local
100 .msg_name = &nladdr, in send_query()
101 .msg_namelen = sizeof(nladdr), in send_query()
205 struct sockaddr_nl nladdr = { in receive_responses() local
216 .msg_name = &nladdr, in receive_responses()
217 .msg_namelen = sizeof(nladdr), in receive_responses()
/external/iproute2/misc/
Darpd.c438 struct sockaddr_nl nladdr = {}; in get_kern_msg() local
442 (void *)&nladdr, sizeof(nladdr), in get_kern_msg()
456 if (msg.msg_namelen != sizeof(nladdr)) in get_kern_msg()
459 if (nladdr.nl_pid) in get_kern_msg()
Dss.c2467 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in tcpdiag_send() local
2520 .msg_name = (void *)&nladdr, in tcpdiag_send()
2521 .msg_namelen = sizeof(nladdr), in tcpdiag_send()
2536 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in sockdiag_send() local
2580 .msg_name = (void *)&nladdr, in sockdiag_send()
2581 .msg_namelen = sizeof(nladdr), in sockdiag_send()
/external/dhcpcd-6.8.2/
Dif-linux.c328 struct sockaddr_nl nladdr; in get_netlink() local
354 nladdr_len = sizeof(nladdr); in get_netlink()
356 (struct sockaddr *)&nladdr, &nladdr_len); in get_netlink()
361 if (nladdr_len != sizeof(nladdr)) { in get_netlink()
366 if (nladdr.nl_pid != 0) { in get_netlink()
/external/iproute2/ip/
Diproute.c1322 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in rtnl_rtcache_request() local
1324 return sendto(rth->fd, (void *)&req, sizeof(req), 0, (struct sockaddr *)&nladdr, sizeof(nladdr)); in rtnl_rtcache_request()