Home
last modified time | relevance | path

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

/external/iproute2/lib/
Dlibnetlink.c151 struct sockaddr_nl nladdr; in rtnl_dump_request() local
157 .msg_name = &nladdr, in rtnl_dump_request()
158 .msg_namelen = sizeof(nladdr), in rtnl_dump_request()
163 memset(&nladdr, 0, sizeof(nladdr)); in rtnl_dump_request()
164 nladdr.nl_family = AF_NETLINK; in rtnl_dump_request()
178 struct sockaddr_nl nladdr; in rtnl_dump_filter_l() local
181 .msg_name = &nladdr, in rtnl_dump_filter_l()
182 .msg_namelen = sizeof(nladdr), in rtnl_dump_filter_l()
215 if (nladdr.nl_pid != 0 || in rtnl_dump_filter_l()
219 err = a->junk(&nladdr, h, in rtnl_dump_filter_l()
[all …]
/external/libselinux/src/
Davc_internal.c100 struct sockaddr_nl nladdr; in avc_netlink_receive() local
101 socklen_t nladdrlen = sizeof nladdr; in avc_netlink_receive()
116 rc = recvfrom(fd, buf, buflen, 0, (struct sockaddr *)&nladdr, in avc_netlink_receive()
121 if (nladdrlen != sizeof nladdr) { in avc_netlink_receive()
128 if (nladdr.nl_pid) { in avc_netlink_receive()
131 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.c436 struct sockaddr_nl nladdr; in get_kern_msg() local
440 (void*)&nladdr, sizeof(nladdr), in get_kern_msg()
446 memset(&nladdr, 0, 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.c1471 struct sockaddr_nl nladdr; in tcp_show_netlink() local
1486 memset(&nladdr, 0, sizeof(nladdr)); in tcp_show_netlink()
1487 nladdr.nl_family = AF_NETLINK; in tcp_show_netlink()
1520 .msg_name = (void*)&nladdr, in tcp_show_netlink()
1521 .msg_namelen = sizeof(nladdr), in tcp_show_netlink()
1539 (void*)&nladdr, sizeof(nladdr), in tcp_show_netlink()
/external/iproute2/tc/
Dm_action.c380 struct sockaddr_nl nladdr; in tc_action_gd() local
395 memset(&nladdr, 0, sizeof(nladdr)); in tc_action_gd()
396 nladdr.nl_family = AF_NETLINK; in tc_action_gd()
/external/iproute2/ip/
Diproute.c997 struct sockaddr_nl nladdr; in rtnl_rtcache_request() local
999 memset(&nladdr, 0, sizeof(nladdr)); in rtnl_rtcache_request()
1001 nladdr.nl_family = AF_NETLINK; in rtnl_rtcache_request()
1011 return sendto(rth->fd, (void*)&req, sizeof(req), 0, (struct sockaddr*)&nladdr, sizeof(nladdr)); in rtnl_rtcache_request()