/external/android-clat/ |
setif.c | 103 struct ifinfomsg ifi; local 106 memset(&ifi, 0, sizeof(ifi)); 107 if (!(ifi.ifi_index = if_nametoindex(ifname))) { 111 ifi.ifi_change = IFF_UP; 112 ifi.ifi_flags = IFF_UP; 114 msg = nlmsg_alloc_ifinfo(RTM_SETLINK, NLM_F_ACK | NLM_F_REQUEST | NLM_F_ROOT, &ifi);
|
/bionic/libc/bionic/ |
net_if.cpp | 99 ifinfomsg* ifi = reinterpret_cast<ifinfomsg*>(NLMSG_DATA(hdr)); local 103 new_link->data.if_index = ifi->ifi_index; 106 rtattr* rta = IFLA_RTA(ifi);
|
ifaddrs.cpp | 164 ifinfomsg* ifi = reinterpret_cast<ifinfomsg*>(NLMSG_DATA(hdr)); local 168 new_addr->interface_index = ifi->ifi_index; 169 new_addr->ifa.ifa_flags = ifi->ifi_flags; 172 rtattr* rta = IFLA_RTA(ifi); 178 new_addr->SetPacketAttributes(ifi->ifi_index, ifi->ifi_type, RTA_PAYLOAD(rta)); 183 new_addr->SetPacketAttributes(ifi->ifi_index, ifi->ifi_type, RTA_PAYLOAD(rta));
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/ |
p3-generic-lambda-1y.cpp | 47 static int ifi(int i) { return i; } function in struct:Local 53 l4(&Local::ifi);
|
/external/iproute2/ip/ |
iptoken.c | 50 struct ifinfomsg *ifi = NLMSG_DATA(n); local 59 len -= NLMSG_LENGTH(sizeof(*ifi)); 63 if (ifi->ifi_family != AF_INET6) 65 if (ifi->ifi_index == 0) 67 if (ifindex > 0 && ifi->ifi_index != ifindex) 69 if (ifi->ifi_flags & (IFF_LOOPBACK | IFF_NOARP)) 72 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); 83 format_host(ifi->ifi_family, 87 fprintf(fp, "dev %s ", ll_index_to_name(ifi->ifi_index)); 129 struct ifinfomsg ifi; member in struct:__anon12529 [all...] |
link_vti.c | 54 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); local 68 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 72 req.i.ifi_index = ifi->ifi_index; 82 len -= NLMSG_LENGTH(sizeof(*ifi));
|
link_vti6.c | 50 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); local 64 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 68 req.i.ifi_index = ifi->ifi_index; 78 len -= NLMSG_LENGTH(sizeof(*ifi));
|
link_gre6.c | 68 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); local 88 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 92 req.i.ifi_index = ifi->ifi_index; 102 len -= NLMSG_LENGTH(sizeof(*ifi));
|
link_ip6tnl.c | 66 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); local 86 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 90 req.i.ifi_index = ifi->ifi_index; 100 len -= NLMSG_LENGTH(sizeof(*ifi));
|
link_gre.c | 58 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); local 82 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 86 req.i.ifi_index = ifi->ifi_index; 96 len -= NLMSG_LENGTH(sizeof(*ifi));
|
link_iptnl.c | 61 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); local 88 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 92 req.i.ifi_index = ifi->ifi_index; 102 len -= NLMSG_LENGTH(sizeof(*ifi));
|
ipaddress.c | 603 struct ifinfomsg *ifi = NLMSG_DATA(n); local 606 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), 607 n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi))); 616 struct ifinfomsg *ifi = NLMSG_DATA(n); local 626 len -= NLMSG_LENGTH(sizeof(*ifi)); 630 if (filter.ifindex && ifi->ifi_index != filter.ifindex) 632 if (filter.up && !(ifi->ifi_flags&IFF_UP)) 635 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); 637 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index); 699 ifi->ifi_type 717 struct ifinfomsg *ifi = NLMSG_DATA(n); local 1341 struct ifinfomsg *ifi = NLMSG_DATA(&l->h); local 1644 struct ifinfomsg *ifi = NLMSG_DATA(&l->h); local 1696 struct ifinfomsg *ifi; local [all...] |
/external/avahi/avahi-autoipd/ |
iface-linux.c | 108 struct ifinfomsg *ifi; local 109 ifi = NLMSG_DATA(n); 111 if (ifi->ifi_family != AF_UNSPEC || (int) ifi->ifi_index != ifindex) 121 if ((ifi->ifi_flags & IFF_LOOPBACK) || 122 (ifi->ifi_flags & IFF_NOARP) || 123 ifi->ifi_type != ARPHRD_ETHER) { 252 struct ifinfomsg *ifi; local 262 n->nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 268 ifi = NLMSG_DATA(n) [all...] |
/external/iproute2/lib/ |
ll_map.c | 86 struct ifinfomsg *ifi = NLMSG_DATA(n); local 93 if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifi))) 96 im = ll_get_by_index(ifi->ifi_index); 107 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), IFLA_PAYLOAD(n)); 120 im->flags = ifi->ifi_flags; 127 im->index = ifi->ifi_index; 129 im->type = ifi->ifi_type; 130 im->flags = ifi->ifi_flags; 132 h = ifi->ifi_index & (IDXMAP_SIZE - 1);
|
/system/connectivity/shill/net/ |
rtnl_message.cc | 36 struct ifinfomsg ifi; member in union:shill::RTNLHeader::__anon74142 168 if (hdr->hdr.nlmsg_len < NLMSG_LENGTH(sizeof(hdr->ifi))) { 177 family_ = hdr->ifi.ifi_family; 178 interface_index_ = hdr->ifi.ifi_index; 179 set_link_status(LinkStatus(hdr->ifi.ifi_type, 180 hdr->ifi.ifi_flags, 181 hdr->ifi.ifi_change)); 428 hdr->hdr.nlmsg_len = NLMSG_LENGTH(sizeof(hdr->ifi)); 429 hdr->ifi.ifi_family = family_; 430 hdr->ifi.ifi_index = interface_index_ [all...] |
/external/iproute2/bridge/ |
link.c | 104 struct ifinfomsg *ifi = NLMSG_DATA(n); local 108 len -= NLMSG_LENGTH(sizeof(*ifi)); 114 if (!(ifi->ifi_family == AF_BRIDGE || ifi->ifi_family == AF_UNSPEC)) 117 if (filter_index && filter_index != ifi->ifi_index) 120 parse_rtattr_flags(tb, IFLA_MAX, IFLA_RTA(ifi), len, NLA_F_NESTED); 130 fprintf(fp, "%d: %s ", ifi->ifi_index, 147 print_link_flags(fp, ifi->ifi_flags);
|
/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) 224 struct ifi_info *ifi, *ifihead, **ifipnext, *ifipold, **ifiptr; local 498 struct ifi_info *ifi, *ifinext; local [all...] |
/external/wpa_supplicant_8/src/ap/ |
vlan_full.c | 589 struct ifinfomsg *ifi; local 594 if (len < sizeof(*ifi)) 597 ifi = NLMSG_DATA(h); 605 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); 635 ifi->ifi_index, ifname, ifi->ifi_family, ifi->ifi_flags, 636 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", 637 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", 638 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "" [all...] |
/system/core/libsysutils/src/ |
NetlinkEvent.cpp | 131 struct ifinfomsg *ifi = (struct ifinfomsg *) NLMSG_DATA(nh); local 132 if (!checkRtNetlinkLength(nh, sizeof(*ifi))) 135 if ((ifi->ifi_flags & IFF_LOOPBACK) != 0) { 141 for (rta = IFLA_RTA(ifi); RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { 145 mAction = (ifi->ifi_flags & IFF_LOWER_UP) ? Action::kLinkUp :
|
/external/iproute2/misc/ |
ifstat.c | 113 struct ifinfomsg *ifi = NLMSG_DATA(m); local 122 len -= NLMSG_LENGTH(sizeof(*ifi)); 126 if (!(ifi->ifi_flags&IFF_UP)) 129 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); 136 n->ifindex = ifi->ifi_index;
|
/external/dhcpcd-6.8.2/ |
if-linux.c | 740 struct ifinfomsg *ifi; local 758 if ((size_t)len < sizeof(*ifi)) { 762 ifi = NLMSG_DATA(nlm); 763 if (ifi->ifi_flags & IFF_LOOPBACK) 765 rta = (struct rtattr *)(void *)((char *)ifi +NLMSG_ALIGN(sizeof(*ifi))); 766 len = NLMSG_PAYLOAD(nlm, sizeof(*ifi)); 775 ifi->ifi_change == 0) 797 if (ifi->ifi_flags & IFF_MASTER && !hwaddr) { 803 if (handle_rename(ctx, (unsigned int)ifi->ifi_index, ifn) [all...] |
dhcp6.c | 432 const struct interface *ifi; local 435 TAILQ_FOREACH(ifi, ifp->ctx->ifaces, next) { 436 if (ifi != ifp && ifi->index > sla_max) 437 sla_max = ifi->index; [all...] |
/external/libnl/lib/route/ |
link.c | 260 struct ifinfomsg *ifi; local 272 err = nlmsg_parse(n, sizeof(*ifi), tb, IFLA_MAX, link_policy); 283 ifi = nlmsg_data(n); 284 link->l_family = ifi->ifi_family; 285 link->l_arptype = ifi->ifi_type; 286 link->l_index = ifi->ifi_index; 287 link->l_flags = ifi->ifi_flags; 288 link->l_change = ifi->ifi_change; 866 struct ifinfomsg ifi = { local 872 ifi.ifi_flags = old->l_flags & ~tmpl->l_flag_mask [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
wpa_supplicant.c | 4964 struct if_nameindex *ifi, *ifp; local [all...] |
/external/mdnsresponder/mDNSShared/ |
uds_daemon.c | 231 mDNSu32 ifi; // Note: This field is in NETWORK byte order member in struct:__anon18722 430 (*rep)->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, id, mDNSfalse)); 473 (*rep)->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, id, mDNSfalse)); [all...] |