Home
last modified time | relevance | path

Searched refs:ifa_addr (Results 1 – 25 of 28) sorted by relevance

12

/external/iputils/ninfod/
Dninfod_addrs.c173 if (!ifa->ifa_addr) in pr_nodeinfo_ipv6addr()
188 IN6_ARE_ADDR_EQUAL((struct in6_addr *)ifa->ifa_addr, in pr_nodeinfo_ipv6addr()
226 if (!ifa->ifa_addr) in pr_nodeinfo_ipv6addr()
233 if (filter_ipv6addr((struct in6_addr *)ifa->ifa_addr, flags)) in pr_nodeinfo_ipv6addr()
270 if (!ifa->ifa_addr) in pr_nodeinfo_ipv6addr()
278 if (filter_ipv6addr((struct in6_addr *)ifa->ifa_addr, flags)) in pr_nodeinfo_ipv6addr()
295 memcpy(cp + sizeof(ttl), ifa->ifa_addr, sizeof(struct in6_addr)); in pr_nodeinfo_ipv6addr()
342 if (!ifa->ifa_addr) in pr_nodeinfo_ipv4addr()
347 memcmp((struct in_addr *)ifa->ifa_addr, in pr_nodeinfo_ipv4addr()
386 if (!ifa->ifa_addr) in pr_nodeinfo_ipv4addr()
[all …]
Dni_ifaddrs.h37 void *ifa_addr; member
Dni_ifaddrs.c468 ifa->ifa_addr = data; in ni_ifaddrs()
508 ifa->ifa_addr = (struct sockaddr *) data; in ni_ifaddrs()
509 memcpy(ifa->ifa_addr, ifamap.address, ifamap.address_len); in ni_ifaddrs()
/external/curl/lib/
Dif2ip.c117 if(iface->ifa_addr != NULL) { in Curl_if2ip()
118 if(iface->ifa_addr->sa_family == af) { in Curl_if2ip()
127 unsigned int ifscope = Curl_ipv6_scope(iface->ifa_addr); in Curl_if2ip()
139 &((struct sockaddr_in6 *)(void *)iface->ifa_addr)->sin6_addr; in Curl_if2ip()
142 scopeid = ((struct sockaddr_in6 *)(void *)iface->ifa_addr) in Curl_if2ip()
159 &((struct sockaddr_in *)(void *)iface->ifa_addr)->sin_addr; in Curl_if2ip()
/external/libcups/cups/
Dgetifaddrs.c133 if ((temp->ifa_addr = calloc(1, sockaddr_len(&(ifp->ifr_addr)))) != NULL) in _cups_getifaddrs()
134 memcpy(temp->ifa_addr, &(ifp->ifr_addr), sockaddr_len(&(ifp->ifr_addr))); in _cups_getifaddrs()
227 if (addrs->ifa_addr) in _cups_freeifaddrs()
229 free(addrs->ifa_addr); in _cups_freeifaddrs()
230 addrs->ifa_addr = NULL; in _cups_freeifaddrs()
Dhttp-private.h408 struct sockaddr *ifa_addr, /* Network address */ member
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c113 struct sockaddr *ifa_addr; member
195 I->ifa_addr = (struct sockaddr*)&I->ifa_addrbuf; in recvaddrs()
196 I->ifa_addr->sa_family = m->ifa_family; in recvaddrs()
198 struct sockaddr_in *sin = (void*)I->ifa_addr; in recvaddrs()
201 struct sockaddr_in6 *sin = (void*)I->ifa_addr; in recvaddrs()
357 if (! ifap->ifa_addr) in grab_myaddrs()
360 if (ifap->ifa_addr->sa_family != AF_INET in grab_myaddrs()
362 && ifap->ifa_addr->sa_family != AF_INET6 in grab_myaddrs()
367 if (!suitable_ifaddr(ifap->ifa_name, ifap->ifa_addr)) { in grab_myaddrs()
371 saddrwop2str(ifap->ifa_addr)); in grab_myaddrs()
[all …]
/external/webrtc/webrtc/base/
Difaddrs_converter.cc23 switch (interface->ifa_addr->sa_family) { in ConvertIfAddrsToIPAddress()
26 reinterpret_cast<sockaddr_in*>(interface->ifa_addr)->sin_addr); in ConvertIfAddrsToIPAddress()
37 reinterpret_cast<sockaddr_in6*>(interface->ifa_addr)->sin6_addr, in ConvertIfAddrsToIPAddress()
Difaddrs-android.cc73 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses()
79 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses()
214 delete cursor->ifa_addr; in freeifaddrs()
Dnetwork.cc405 if (!cursor->ifa_addr || !cursor->ifa_netmask) { in ConvertIfAddrs()
413 if (cursor->ifa_addr->sa_family != AF_INET && in ConvertIfAddrs()
414 cursor->ifa_addr->sa_family != AF_INET6) { in ConvertIfAddrs()
418 if (cursor->ifa_addr->sa_family == AF_INET6 && !ipv6_enabled()) { in ConvertIfAddrs()
427 if (cursor->ifa_addr->sa_family == AF_INET6) { in ConvertIfAddrs()
432 reinterpret_cast<sockaddr_in6*>(cursor->ifa_addr)->sin6_scope_id; in ConvertIfAddrs()
Difaddrs-android.h26 struct sockaddr* ifa_addr; member
Dnetwork_unittest.cc120 if_addr->ifa_addr = reinterpret_cast<struct sockaddr*>( in AddIpv6Address()
133 delete if_addr->ifa_addr; in ReleaseIfAddrs()
740 sockaddr ifa_addr; in TEST_F() local
742 list.ifa_addr = &ifa_addr; in TEST_F()
Dmacifaddrs_converter.cc260 interface->ifa_name, interface->ifa_addr, &native_attributes)) { in ConvertNativeAttributesToIPAttributes()
/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_server_utils_posix_ifaddrs.cc119 if (ifa_it->ifa_addr == nullptr) { in grpc_tcp_server_add_all_local_addrs()
121 } else if (ifa_it->ifa_addr->sa_family == AF_INET) { in grpc_tcp_server_add_all_local_addrs()
123 } else if (ifa_it->ifa_addr->sa_family == AF_INET6) { in grpc_tcp_server_add_all_local_addrs()
128 memcpy(addr.addr, ifa_it->ifa_addr, addr.len); in grpc_tcp_server_add_all_local_addrs()
/external/compiler-rt/test/msan/
Difaddrs.cc43 CHECK_AND_PUSH(p->ifa_addr, sizeof(*p->ifa_addr)); in main()
/external/mdnsresponder/mDNSWindows/
DmDNSWin32.c1889 …if (ifa->ifa_addr->sa_family == AF_INET && !SetupAddr(&addr, ifa->ifa_addr) && !(ifa->ifa_flags & … in SetReverseMapSearchDomainList()
2479 …if( !p->ifa_addr || ( p->ifa_addr->sa_family != AF_INET ) || ( ( p->ifa_flags & flagMask ) != flag… in SetupInterfaceList()
2492 p->ifa_name ? p->ifa_name : "<null>", p->ifa_extra.index, p->ifa_addr ); in SetupInterfaceList()
2534 …if( !p->ifa_addr || ( p->ifa_addr->sa_family != AF_INET6 ) || ( ( p->ifa_flags & flagMask ) != fla… in SetupInterfaceList()
2547 p->ifa_name ? p->ifa_name : "<null>", p->ifa_extra.index, p->ifa_addr ); in SetupInterfaceList()
2588 if( !p->ifa_addr || ( ( p->ifa_flags & flagMask ) != flagTest ) ) in SetupInterfaceList()
2592 if( ( p->ifa_addr->sa_family != AF_INET ) && ( p->ifa_addr->sa_family != AF_INET6 ) ) in SetupInterfaceList()
2606 …4->ifa_name ? loopbackv4->ifa_name : "<null>", loopbackv4->ifa_extra.index, loopbackv4->ifa_addr ); in SetupInterfaceList()
2636 …6->ifa_name ? loopbackv6->ifa_name : "<null>", loopbackv6->ifa_extra.index, loopbackv6->ifa_addr ); in SetupInterfaceList()
2739 check( inIFA->ifa_addr ); in SetupInterface()
[all …]
DmDNSWin32.h173 struct sockaddr * ifa_addr; member
/external/libpcap/
Dfad-getad.c222 if (ifa->ifa_addr != NULL) { in pcap_findalldevs_interfaces()
223 addr = ifa->ifa_addr; in pcap_findalldevs_interfaces()
/external/toybox/toys/net/
Dping.c133 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family!=ai->ai_family in ping_main()
135 sa = (void *)ifa->ifa_addr; in ping_main()
/external/grpc-grpc/test/core/iomgr/
Dtcp_server_posix_test.cc459 if (ifa_it->ifa_addr == nullptr) { in main()
461 } else if (ifa_it->ifa_addr->sa_family == AF_INET) { in main()
464 } else if (ifa_it->ifa_addr->sa_family == AF_INET6) { in main()
470 memcpy(dst_addrs->addrs[dst_addrs->naddrs].addr.addr, ifa_it->ifa_addr, in main()
/external/iputils/
Darping.c608 if (!ifa->ifa_addr) in find_device_by_ifaddrs()
610 if (ifa->ifa_addr->sa_family != AF_PACKET) in find_device_by_ifaddrs()
618 if (!((struct sockaddr_ll *)ifa->ifa_addr)->sll_halen) in find_device_by_ifaddrs()
Dping.c405 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_INET) in main()
408 !memcmp(&((struct sockaddr_in *)ifa->ifa_addr)->sin_addr, in main()
Dping6.c1016 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_INET6) in main()
1019 IN6_ARE_ADDR_EQUAL(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr, in main()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_platform_limits_posix.h298 void *ifa_addr; // (struct sockaddr *) member
/external/libevent/
Devutil.c661 if (!i->ifa_addr) in evutil_check_ifaddrs()
663 evutil_found_ifaddr(i->ifa_addr); in evutil_check_ifaddrs()

12