/external/android-clat/ |
setif.c | 100 struct ifinfomsg ifi; local 103 memset(&ifi, 0, sizeof(ifi)); 104 if (!(ifi.ifi_index = if_nametoindex(ifname))) { 108 ifi.ifi_change = IFF_UP; 109 ifi.ifi_flags = IFF_UP; 111 msg = nlmsg_alloc_ifinfo(RTM_SETLINK, NLM_F_ACK | NLM_F_REQUEST | NLM_F_ROOT, &ifi);
|
/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 | 344 struct ifinfomsg *ifi; local 357 if ((size_t)len < sizeof(*ifi)) { 361 ifi = NLMSG_DATA(nlm); 362 if (ifi->ifi_flags & IFF_LOOPBACK) 364 rta = (struct rtattr *) ((char *)ifi + NLMSG_ALIGN(sizeof(*ifi))); 365 len = NLMSG_PAYLOAD(nlm, sizeof(*ifi)); 372 ifi->ifi_change == 0) 391 if (ifi->ifi_flags & IFF_MASTER && !(ifi->ifi_flags & IFF_LOWER_UP)) [all...] |
/external/mdnsresponder/mDNSPosix/ |
mDNSUNP.c | 85 struct ifi_info *ifi, *ifihead, **ifipnext, *ifipold, **ifiptr; local 121 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); 122 if (ifi == NULL) { 128 *ifipnext = ifi; /* prev points to this new one */ 129 ifipnext = &ifi->ifi_next; /* pointer to next one goes here */ 143 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); 144 if (ifi->ifi_addr == NULL) { 147 memcpy(ifi->ifi_addr, res0->ai_addr, sizeof(struct sockaddr_in6)); 152 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); 153 if (ifi->ifi_addr == NULL) 217 struct ifi_info *ifi, *ifihead, **ifipnext, *ifipold, **ifiptr; local 491 struct ifi_info *ifi, *ifinext; local [all...] |
/external/wpa_supplicant_8/src/ap/ |
vlan_init.c | 603 struct ifinfomsg *ifi; local 607 if (len < sizeof(*ifi)) 610 ifi = NLMSG_DATA(h); 618 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;
|
/hardware/ti/wlan/mac80211/wpa_supplicant_lib/ |
driver_mac80211.c | 491 struct ifinfomsg *ifi; local 495 ifi = NLMSG_DATA(h); 504 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); 546 struct ifinfomsg *ifi; local 550 if (len < sizeof(*ifi)) { 554 ifi = NLMSG_DATA(h); 556 if (!wpa_driver_wext_own_ifindex(drv, ifi->ifi_index, h)) { 558 ifi->ifi_index); 564 drv->operstate, ifi->ifi_flags, 565 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "" 610 struct ifinfomsg *ifi; local [all...] |
/external/mdnsresponder/mDNSShared/ |
uds_daemon.c | 231 mDNSu32 ifi; // Note: This field is in NETWORK byte order member in struct:__anon12278 430 (*rep)->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, id, mDNSfalse)); 473 (*rep)->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, id, mDNSfalse)); [all...] |