/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
D | sctp_bsd_addr.c | 360 ifa->ifa_addr = (struct sockaddr *)malloc(sizeof(struct sockaddr_in)); 361 memcpy(ifa->ifa_addr, pUnicast->Address.lpSockaddr, sizeof(struct sockaddr_in)); 369 ifa->ifa_addr, 408 ifa->ifa_addr = (struct sockaddr *)malloc(sizeof(struct sockaddr_in6)); 409 memcpy(ifa->ifa_addr, pUnicast->Address.lpSockaddr, sizeof(struct sockaddr_in6)); 416 ifa->ifa_addr, 444 if (ifa->ifa_addr == NULL) { 448 if (ifa->ifa_addr->sa_family != AF_INET6) { 453 if (ifa->ifa_addr->sa_family != AF_INET) { 458 if ((ifa->ifa_addr->sa_family != AF_INET) && (ifa->ifa_addr->sa_family != AF_INET6)) { [all …]
|
D | sctp_userspace.c | 143 ifa->ifa_addr = (struct sockaddr *)addr; in Win_getifaddrs() 177 ifa->ifa_addr = (struct sockaddr *)addr6; in Win_getifaddrs()
|
/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/dhcpcd/ |
D | ifaddrs.c | 68 ifa->ifa_addr = (struct sockaddr *)saddr; in get_interface() 90 ifa->ifa_addr = (struct sockaddr *)hwaddr; in get_interface() 140 if (ifp->ifa_addr) in freeifaddrs() 141 free(ifp->ifa_addr); in freeifaddrs()
|
D | net.c | 361 if (ifa->ifa_addr != NULL) { in discover_interfaces() 363 if (ifa->ifa_addr->sa_family != AF_LINK) in discover_interfaces() 366 if (ifa->ifa_addr->sa_family != AF_PACKET) in discover_interfaces() 437 } else if (ifa->ifa_addr != NULL) { in discover_interfaces() 439 sdl = (const struct sockaddr_dl *)(void *)ifa->ifa_addr; in discover_interfaces() 445 memcpy(&iflr.addr, ifa->ifa_addr, in discover_interfaces() 446 MIN(ifa->ifa_addr->sa_len, sizeof(iflr.addr))); in discover_interfaces() 480 sll = (const struct sockaddr_ll *)(void *)ifa->ifa_addr; in discover_interfaces() 546 if (ifa->ifa_addr == NULL || in do_address() 547 ifa->ifa_addr->sa_family != AF_INET || in do_address() [all …]
|
D | ifaddrs.h | 19 struct sockaddr *ifa_addr; member
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 109 struct sockaddr *ifa_addr; member 191 I->ifa_addr = (struct sockaddr*)&I->ifa_addrbuf; in recvaddrs() 192 I->ifa_addr->sa_family = m->ifa_family; in recvaddrs() 194 struct sockaddr_in *sin = (void*)I->ifa_addr; in recvaddrs() 197 struct sockaddr_in6 *sin = (void*)I->ifa_addr; in recvaddrs() 353 if (! ifap->ifa_addr) in grab_myaddrs() 356 if (ifap->ifa_addr->sa_family != AF_INET in grab_myaddrs() 358 && ifap->ifa_addr->sa_family != AF_INET6 in grab_myaddrs() 363 if (!suitable_ifaddr(ifap->ifa_name, ifap->ifa_addr)) { in grab_myaddrs() 367 saddrwop2str(ifap->ifa_addr)); in grab_myaddrs() [all …]
|
/external/chromium_org/net/dns/ |
D | address_sorter_posix.cc | 355 if (!src.FromSockAddr(ifa->ifa_addr, ifa->ifa_addr->sa_len)) in OnIPAddressChanged() 360 if (ifa->ifa_addr->sa_family == AF_INET6) { in OnIPAddressChanged() 363 DCHECK_LE(ifa->ifa_addr->sa_len, sizeof(ifr.ifr_ifru.ifru_addr)); in OnIPAddressChanged() 364 memcpy(&ifr.ifr_ifru.ifru_addr, ifa->ifa_addr, ifa->ifa_addr->sa_len); in OnIPAddressChanged() 374 if (netmask.FromSockAddr(ifa->ifa_netmask, ifa->ifa_addr->sa_len)) { in OnIPAddressChanged()
|
/external/compiler-rt/test/msan/ |
D | ifaddrs.cc | 39 CHECK_AND_PUSH(p->ifa_addr, sizeof(*p->ifa_addr)); in main()
|
/external/chromium_org/third_party/webrtc/base/ |
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 | ifaddrs-android.h | 26 struct sockaddr* ifa_addr; member
|
D | network.cc | 258 if (!cursor->ifa_addr || !cursor->ifa_netmask) in ConvertIfAddrs() 261 switch (cursor->ifa_addr->sa_family) { in ConvertIfAddrs() 264 reinterpret_cast<sockaddr_in*>(cursor->ifa_addr)->sin_addr); in ConvertIfAddrs() 272 reinterpret_cast<sockaddr_in6*>(cursor->ifa_addr)->sin6_addr); in ConvertIfAddrs() 276 reinterpret_cast<sockaddr_in6*>(cursor->ifa_addr)->sin6_scope_id; in ConvertIfAddrs()
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | ifaddrs-android.cc | 86 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses() 92 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses() 227 delete cursor->ifa_addr; in freeifaddrs()
|
D | ifaddrs-android.h | 41 struct sockaddr* ifa_addr; member
|
D | network.cc | 275 if (!cursor->ifa_addr || !cursor->ifa_netmask) in ConvertIfAddrs() 278 switch (cursor->ifa_addr->sa_family) { in ConvertIfAddrs() 281 reinterpret_cast<sockaddr_in*>(cursor->ifa_addr)->sin_addr); in ConvertIfAddrs() 289 reinterpret_cast<sockaddr_in6*>(cursor->ifa_addr)->sin6_addr); in ConvertIfAddrs() 293 reinterpret_cast<sockaddr_in6*>(cursor->ifa_addr)->sin6_scope_id; in ConvertIfAddrs()
|
/external/libpcap/ |
D | fad-getad.c | 211 if (ifa->ifa_addr != NULL) { in pcap_findalldevs_interfaces() 212 addr = ifa->ifa_addr; in pcap_findalldevs_interfaces()
|
/external/chromium_org/net/base/ |
D | net_util_posix.cc | 177 struct sockaddr* addr = interface->ifa_addr; in GetNetworkList() 224 memcpy(&ifr.ifr_ifru.ifru_addr, interface->ifa_addr, in GetNetworkList() 225 interface->ifa_addr->sa_len); in GetNetworkList()
|
/external/chromium_org/base/ios/ |
D | device_util.mm | 100 if ((address->ifa_addr->sa_family == AF_LINK) && 103 reinterpret_cast<const struct sockaddr_dl*>(address->ifa_addr);
|
/external/chromium_org/third_party/usrsctp/usrsctplib/ |
D | user_recv_thread.c | 119 ifa->ifa_addr = (struct sockaddr *)malloc(sizeof(struct sockaddr_in)); in sctp_handle_ifamsg() 120 memcpy(ifa->ifa_addr, sa, sizeof(struct sockaddr_in)); in sctp_handle_ifamsg() 125 ifa->ifa_addr = (struct sockaddr *)malloc(sizeof(struct sockaddr_in6)); in sctp_handle_ifamsg() 126 memcpy(ifa->ifa_addr, sa, sizeof(struct sockaddr_in6)); in sctp_handle_ifamsg() 139 ifa->ifa_addr, in sctp_handle_ifamsg() 143 sctp_del_addr_from_vrf(SCTP_DEFAULT_VRFID, ifa->ifa_addr, in sctp_handle_ifamsg()
|
/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 | 273 void *ifa_addr; // (struct sockaddr *) member
|