/external/webrtc/webrtc/base/ |
ifaddrs-android.cc | 39 int set_ifname(struct ifaddrs* ifaddr, int interface) { 45 ifaddr->ifa_name = new char[strlen(name) + 1]; 46 strncpy(ifaddr->ifa_name, name, strlen(name) + 1); 50 int set_flags(struct ifaddrs* ifaddr) { 57 strncpy(ifr.ifr_name, ifaddr->ifa_name, IFNAMSIZ - 1); 63 ifaddr->ifa_flags = ifr.ifr_flags; 67 int set_addresses(struct ifaddrs* ifaddr, ifaddrmsg* msg, void* data, 73 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); 79 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); 86 int make_prefixes(struct ifaddrs* ifaddr, int family, int prefixlen) [all...] |
/libcore/ojluni/src/main/java/java/net/ |
Inet6AddressImpl.java | 143 byte[] ifaddr = null; 158 ifaddr = inetaddr.getAddress(); 165 if (ifaddr == null) { 180 return isReachable0(addr.getAddress(), scope, timeout, ifaddr, ttl, netif_scope);
|
/external/iputils/ninfod/ |
ninfod_addrs.c | 136 int filter_ipv6addr(const struct in6_addr *ifaddr, unsigned int flags) 138 if (IN6_IS_ADDR_UNSPECIFIED(ifaddr) || 139 IN6_IS_ADDR_LOOPBACK(ifaddr)) { 141 } else if (IN6_IS_ADDR_V4COMPAT(ifaddr) || 142 IN6_IS_ADDR_V4MAPPED(ifaddr)) { 144 } else if (IN6_IS_ADDR_LINKLOCAL(ifaddr)) { 146 } else if (IN6_IS_ADDR_SITELOCAL(ifaddr)) { 316 int filter_ipv4addr(const struct in_addr *ifaddr, unsigned int flags)
|
/system/core/libsysutils/src/ |
NetlinkEvent.cpp | 159 struct ifaddrmsg *ifaddr = (struct ifaddrmsg *) NLMSG_DATA(nh); local 164 if (!checkRtNetlinkLength(nh, sizeof(*ifaddr))) 179 for (rta = IFA_RTA(ifaddr); RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { 187 if (ifaddr->ifa_family == AF_INET) { 195 } else if (ifaddr->ifa_family == AF_INET6) { 204 SLOGE("Unknown address family %d\n", ifaddr->ifa_family); 209 if (!if_indextoname(ifaddr->ifa_index, ifname)) { 210 SLOGD("Unknown ifindex %d in %s", ifaddr->ifa_index, msgtype); 237 asprintf(&mParams[0], "ADDRESS=%s/%d", addrstr, ifaddr->ifa_prefixlen); 239 asprintf(&mParams[2], "FLAGS=%u", ifaddr->ifa_flags) [all...] |
/external/ipsec-tools/src/racoon/ |
grabmyaddr.c | 552 suitable_ifaddr(ifname, ifaddr) 554 const struct sockaddr *ifaddr; 558 if (exclude_cfg_addr(ifaddr) == 0) 561 switch(ifaddr->sa_family) { 566 return suitable_ifaddr6(ifname, ifaddr); 576 suitable_ifaddr6(ifname, ifaddr) 578 const struct sockaddr *ifaddr; 585 if (ifaddr->sa_family != AF_INET6) 599 ifr6.ifr_addr = *(const struct sockaddr_in6 *)ifaddr;
|
/external/iputils/ |
rarpd.c | 55 struct ifaddr *ifa_list; 58 struct ifaddr struct 60 struct ifaddr *next; 92 struct ifaddr *ifa; 183 ifa = (struct ifaddr*)malloc(sizeof(*ifa)); 239 struct ifaddr *select_ipaddr(int ifindex, __u32 *sel_addr, __u32 **alist) 242 struct ifaddr *ifa; 298 struct ifaddr *ifa; 367 struct ifaddr *ifa;
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/net/ |
if.h | 84 /* The ifaddr structure contains information about one address of an 89 struct ifaddr struct 98 struct ifaddr *ifa_next; /* Next address for interface. */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/net/ |
if.h | 84 /* The ifaddr structure contains information about one address of an 89 struct ifaddr struct 98 struct ifaddr *ifa_next; /* Next address for interface. */
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/ |
p2p.h | 162 uint8 ifaddr[1][6]; /* P2P Interface Address list */ member in struct:wifi_p2p_intf_se_s 276 uint8 ifaddr[ETHER_ADDR_LEN]; /* P2P Interface Address */ member in struct:wifi_p2p_cid_fixed_s
|