/external/iproute2/lib/ |
ll_map.c | 44 struct ifinfomsg *ifi = NLMSG_DATA(n); local 51 if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifi))) 56 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), IFLA_PAYLOAD(n)); 60 h = ifi->ifi_index&0xF; 63 if (im->index == ifi->ifi_index) 71 im->index = ifi->ifi_index; 75 im->type = ifi->ifi_type; 76 im->flags = ifi->ifi_flags;
|
/external/iproute2/ip/ |
link_gre.c | 50 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); local 69 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 73 req.i.ifi_index = ifi->ifi_index; 83 len -= NLMSG_LENGTH(sizeof(*ifi));
|
ipaddress.c | 224 struct ifinfomsg *ifi = NLMSG_DATA(n); local 232 len -= NLMSG_LENGTH(sizeof(*ifi)); 236 if (filter.ifindex && ifi->ifi_index != filter.ifindex) 238 if (filter.up && !(ifi->ifi_flags&IFF_UP)) 241 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); 243 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index); 253 fprintf(fp, "%d: %s", ifi->ifi_index, 269 print_link_flags(fp, ifi->ifi_flags, m_flag); 290 fprintf(fp, " link/%s ", ll_type_n2a(ifi->ifi_type, b1, sizeof(b1))); 295 ifi->ifi_type 896 struct ifinfomsg *ifi = NLMSG_DATA(&l->h); local 949 struct ifinfomsg *ifi = NLMSG_DATA(&l->h); local [all...] |
/system/core/libsysutils/src/ |
NetlinkEvent.cpp | 83 struct ifinfomsg *ifi; local 85 if (sizeof(*ifi) > (size_t) len) { 90 ifi = (ifinfomsg *)NLMSG_DATA(nh); 91 if ((ifi->ifi_flags & IFF_LOOPBACK) != 0) { 96 ((char *) ifi + NLMSG_ALIGN(sizeof(*ifi))); 97 len = NLMSG_PAYLOAD(nh, sizeof(*ifi)); 106 mAction = (ifi->ifi_flags & IFF_LOWER_UP) ?
|
/external/dhcpcd/ |
if-linux.c | 337 struct ifinfomsg *ifi; local 350 if ((size_t)len < sizeof(*ifi)) { 354 ifi = NLMSG_DATA(nlm); 355 if (ifi->ifi_flags & IFF_LOOPBACK) 357 rta = (struct rtattr *) ((char *)ifi + NLMSG_ALIGN(sizeof(*ifi))); 358 len = NLMSG_PAYLOAD(nlm, sizeof(*ifi)); 365 ifi->ifi_change == 0) 375 len = ifi->ifi_change == ~0U ? 1 : 0;
|
/external/wpa_supplicant_8/src/ap/ |
vlan_init.c | 579 struct ifinfomsg *ifi; local 583 if (len < sizeof(*ifi)) 586 ifi = NLMSG_DATA(h); 594 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len);
|
/external/iproute2/misc/ |
ifstat.c | 83 struct ifinfomsg *ifi = NLMSG_DATA(m); local 92 len -= NLMSG_LENGTH(sizeof(*ifi)); 96 if (!(ifi->ifi_flags&IFF_UP)) 99 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); 106 n->ifindex = ifi->ifi_index;
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
driver_ralink.c | 753 struct ifinfomsg *ifi; local 759 if (len < (int) sizeof(*ifi)) 762 ifi = NLMSG_DATA(h); 763 wpa_hexdump(MSG_DEBUG, "ifi: ", (u8 *) ifi, sizeof(struct ifinfomsg)); 772 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); [all...] |
driver_wext.c | 654 struct ifinfomsg *ifi; local 658 ifi = NLMSG_DATA(h); 666 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); 706 struct ifinfomsg *ifi; local 710 if (len < sizeof(*ifi)) 713 ifi = NLMSG_DATA(h); 715 if (!wpa_driver_wext_own_ifindex(drv, ifi->ifi_index, h)) { 717 ifi->ifi_index); 723 drv->operstate, ifi->ifi_flags, 724 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "" 767 struct ifinfomsg *ifi; local [all...] |
driver_nl80211.c | 748 struct ifinfomsg *ifi; local 752 ifi = NLMSG_DATA(h); 760 attr = (struct rtattr *) (((char *) ifi) + _nlmsg_len); 800 struct ifinfomsg *ifi; local 804 if (len < sizeof(*ifi)) 807 ifi = NLMSG_DATA(h); 809 if (!wpa_driver_nl80211_own_ifindex(drv, ifi->ifi_index, h)) { 811 ifi->ifi_index); 817 drv->operstate, ifi->ifi_flags, 818 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "" 862 struct ifinfomsg *ifi; local [all...] |
/external/wpa_supplicant/ |
driver_wext.c | 690 struct ifinfomsg *ifi; local 694 ifi = NLMSG_DATA(h); 702 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); 742 struct ifinfomsg *ifi; local 746 if (len < sizeof(*ifi)) 749 ifi = NLMSG_DATA(h); 751 if (!wpa_driver_wext_own_ifindex(drv, ifi->ifi_index, h)) { 753 ifi->ifi_index); 759 drv->operstate, ifi->ifi_flags, 760 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "" 803 struct ifinfomsg *ifi; local [all...] |