/external/dnsmasq/src/ |
netlink.c | 277 struct rtmsg *rtm = NLMSG_DATA(h); local 280 if (rtm->rtm_type != RTN_UNICAST || rtm->rtm_scope != RT_SCOPE_LINK)
|
/external/dhcpcd/ |
if-bsd.c | 191 struct rtm struct 195 } rtm; local 196 char *bp = rtm.buffer, *p; 213 memset(&rtm, 0, sizeof(rtm)); 214 rtm.hdr.rtm_version = RTM_VERSION; 215 rtm.hdr.rtm_seq = 1; 217 rtm.hdr.rtm_type = RTM_CHANGE; 219 rtm.hdr.rtm_type = RTM_ADD; 221 rtm.hdr.rtm_type = RTM_DELETE 313 struct rt_msghdr *rtm; local [all...] |
if-linux.c | 226 struct rtmsg *rtm; local 234 if ((size_t)len < sizeof(*rtm)) { 238 rtm = NLMSG_DATA(nlm); 239 if (rtm->rtm_type != RTN_UNICAST || 240 rtm->rtm_table != RT_TABLE_MAIN || 241 rtm->rtm_family != AF_INET || 244 rta = (struct rtattr *) ((char *)rtm + NLMSG_ALIGN(sizeof(*rtm))); 245 len = NLMSG_PAYLOAD(nlm, sizeof(*rtm)); 275 inet_cidrtoaddr(rtm->rtm_dst_len, &rt.net) [all...] |
/external/ipsec-tools/src/racoon/ |
grabmyaddr.c | 475 struct rtmsg *rtm; local 482 rtm = NLMSG_DATA(h); 485 if (rtm->rtm_type != RTN_LOCAL || 486 rtm->rtm_table != RT_TABLE_LOCAL) 489 parse_rtattr(rta, IFA_MAX, RTM_RTA(rtm), IFA_PAYLOAD(h)); 495 addr.ss_family = rtm->rtm_family; 496 switch (rtm->rtm_family) { 520 netlink_route_is_local(rtm->rtm_family, 738 struct rt_msghdr *rtm = (struct rt_msghdr *) msg; local 742 switch (rtm->rtm_type) 783 struct rt_msghdr *rtm = (struct rt_msghdr *) buf; local [all...] |
/external/wpa_supplicant/ |
driver_bsd.c | 463 struct rt_msghdr *rtm; local 475 rtm = (struct rt_msghdr *) buf; 476 if (rtm->rtm_version != RTM_VERSION) { 478 "understood\n", rtm->rtm_version); 482 switch (rtm->rtm_type) { 484 ifan = (struct if_announcemsghdr *) rtm; 502 ifan = (struct if_announcemsghdr *) rtm; 535 ifm = (struct if_msghdr *) rtm; 538 if ((rtm->rtm_flags & RTF_UP) == 0) {
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
driver_bsd.c | 466 struct rt_msghdr *rtm; local 478 rtm = (struct rt_msghdr *) buf; 479 if (rtm->rtm_version != RTM_VERSION) { 481 "understood\n", rtm->rtm_version); 485 switch (rtm->rtm_type) { 487 ifan = (struct if_announcemsghdr *) rtm; 505 ifan = (struct if_announcemsghdr *) rtm; 538 ifm = (struct if_msghdr *) rtm; 541 if ((rtm->rtm_flags & RTF_UP) == 0) {
|
/external/iproute2/ip/ |
iproute.c | 995 struct rtmsg rtm; member in struct:__anon6689 1008 req.rtm.rtm_family = family; 1009 req.rtm.rtm_flags |= RTM_F_CLONED; [all...] |
/external/wpa_supplicant_8/src/drivers/ |
driver_bsd.c | 733 struct rt_msghdr *rtm; local 757 rtm = (struct rt_msghdr *) buf; 758 if (rtm->rtm_version != RTM_VERSION) { 760 rtm->rtm_version); 764 ifan = (struct if_announcemsghdr *) rtm; 765 switch (rtm->rtm_type) { 1170 struct rt_msghdr *rtm; local 1194 rtm = (struct rt_msghdr *) buf; 1195 if (rtm->rtm_version != RTM_VERSION) { 1197 rtm->rtm_version) [all...] |