/external/iputils/ninfod/ |
D | ninfod_addrs.c | 173 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 …]
|
D | ni_ifaddrs.h | 37 void *ifa_addr; member
|
D | ni_ifaddrs.c | 468 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/ |
D | if2ip.c | 117 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/ |
D | getifaddrs.c | 133 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()
|
D | http-private.h | 408 struct sockaddr *ifa_addr, /* Network address */ member
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 113 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/ |
D | ifaddrs_converter.cc | 23 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()
|
D | ifaddrs-android.cc | 73 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()
|
D | network.cc | 405 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()
|
D | ifaddrs-android.h | 26 struct sockaddr* ifa_addr; member
|
D | network_unittest.cc | 120 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()
|
D | macifaddrs_converter.cc | 260 interface->ifa_name, interface->ifa_addr, &native_attributes)) { in ConvertNativeAttributesToIPAttributes()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | tcp_server_utils_posix_ifaddrs.cc | 119 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/ |
D | ifaddrs.cc | 43 CHECK_AND_PUSH(p->ifa_addr, sizeof(*p->ifa_addr)); in main()
|
/external/mdnsresponder/mDNSWindows/ |
D | mDNSWin32.c | 1889 …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 …]
|
D | mDNSWin32.h | 173 struct sockaddr * ifa_addr; member
|
/external/libpcap/ |
D | fad-getad.c | 222 if (ifa->ifa_addr != NULL) { in pcap_findalldevs_interfaces() 223 addr = ifa->ifa_addr; in pcap_findalldevs_interfaces()
|
/external/toybox/toys/net/ |
D | ping.c | 133 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/ |
D | tcp_server_posix_test.cc | 459 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/ |
D | arping.c | 608 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()
|
D | ping.c | 405 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()
|
D | ping6.c | 1016 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/ |
D | sanitizer_platform_limits_posix.h | 298 void *ifa_addr; // (struct sockaddr *) member
|
/external/libevent/ |
D | evutil.c | 661 if (!i->ifa_addr) in evutil_check_ifaddrs() 663 evutil_found_ifaddr(i->ifa_addr); in evutil_check_ifaddrs()
|