Home
last modified time | relevance | path

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

/external/iproute2/lib/
Dlibnetlink.c173 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in rtnl_dump_request() local
179 .msg_name = &nladdr, in rtnl_dump_request()
180 .msg_namelen = sizeof(nladdr), in rtnl_dump_request()
196 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in rtnl_dump_request_n() local
202 .msg_name = &nladdr, in rtnl_dump_request_n()
203 .msg_namelen = sizeof(nladdr), in rtnl_dump_request_n()
218 struct sockaddr_nl nladdr; in rtnl_dump_filter_l() local
221 .msg_name = &nladdr, in rtnl_dump_filter_l()
222 .msg_namelen = sizeof(nladdr), in rtnl_dump_filter_l()
264 if (nladdr.nl_pid != 0 || in rtnl_dump_filter_l()
[all …]
/external/strace/tests/
Dnetlink_inet_diag.c39 struct sockaddr_nl nladdr = { in send_query() local
62 .msg_name = (void*)&nladdr, in send_query()
63 .msg_namelen = sizeof(nladdr), in send_query()
75 struct sockaddr_nl nladdr = { in check_responses() local
83 .msg_name = (void*)&nladdr, in check_responses()
84 .msg_namelen = sizeof(nladdr), in check_responses()
Dnetlink_unix_diag.c46 struct sockaddr_nl nladdr = { in send_query() local
70 .msg_name = (void*)&nladdr, in send_query()
71 .msg_namelen = sizeof(nladdr), in send_query()
83 struct sockaddr_nl nladdr = { in check_responses() local
91 .msg_name = (void*)&nladdr, in check_responses()
92 .msg_namelen = sizeof(nladdr), in check_responses()
/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/
Dsocketutils.c51 struct sockaddr_nl nladdr = { in inet_send_query() local
74 .msg_name = (void*)&nladdr, in inet_send_query()
75 .msg_namelen = sizeof(nladdr), in inet_send_query()
146 struct sockaddr_nl nladdr = { in receive_responses() local
158 .msg_name = (void*)&nladdr, in receive_responses()
159 .msg_namelen = sizeof(nladdr), in receive_responses()
197 struct sockaddr_nl nladdr = { in unix_send_query() local
221 .msg_name = (void*)&nladdr, in unix_send_query()
222 .msg_namelen = sizeof(nladdr), in unix_send_query()
/external/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/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.c126 struct sockaddr_nl nladdr; in recvaddrs() local
137 (void*)&nladdr, sizeof(nladdr), in recvaddrs()
151 if (nladdr.nl_pid) /* Message not from kernel */ in recvaddrs()
220 struct sockaddr_nl nladdr; in getifaddrs() local
229 memset(&nladdr, 0, sizeof(nladdr)); in getifaddrs()
230 nladdr.nl_family = AF_NETLINK; in getifaddrs()
239 if (sendto(fd, (void*)&req, sizeof(req), 0, (struct sockaddr*)&nladdr, sizeof(nladdr)) < 0) { in getifaddrs()
/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/iproute2/misc/
Darpd.c443 struct sockaddr_nl nladdr; in get_kern_msg() local
447 (void*)&nladdr, sizeof(nladdr), in get_kern_msg()
453 memset(&nladdr, 0, sizeof(nladdr)); in get_kern_msg()
463 if (msg.msg_namelen != sizeof(nladdr)) in get_kern_msg()
466 if (nladdr.nl_pid) in get_kern_msg()
Dss.c2120 struct sockaddr_nl nladdr; in tcpdiag_send() local
2134 memset(&nladdr, 0, sizeof(nladdr)); in tcpdiag_send()
2135 nladdr.nl_family = AF_NETLINK; in tcpdiag_send()
2173 .msg_name = (void*)&nladdr, in tcpdiag_send()
2174 .msg_namelen = sizeof(nladdr), in tcpdiag_send()
2189 struct sockaddr_nl nladdr; in sockdiag_send() local
2200 memset(&nladdr, 0, sizeof(nladdr)); in sockdiag_send()
2201 nladdr.nl_family = AF_NETLINK; in sockdiag_send()
2232 .msg_name = (void*)&nladdr, in sockdiag_send()
2233 .msg_namelen = sizeof(nladdr), in sockdiag_send()
/external/iproute2/tc/
Dm_action.c401 struct sockaddr_nl nladdr; in tc_action_gd() local
416 memset(&nladdr, 0, sizeof(nladdr)); in tc_action_gd()
417 nladdr.nl_family = AF_NETLINK; in tc_action_gd()
/external/iproute2/ip/
Diproute.c1234 struct sockaddr_nl nladdr; in rtnl_rtcache_request() local
1236 memset(&nladdr, 0, sizeof(nladdr)); in rtnl_rtcache_request()
1238 nladdr.nl_family = AF_NETLINK; in rtnl_rtcache_request()
1248 return sendto(rth->fd, (void*)&req, sizeof(req), 0, (struct sockaddr*)&nladdr, sizeof(nladdr)); in rtnl_rtcache_request()
/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()