Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
Dsctp_bsd_addr.c360 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 …]
Dsctp_userspace.c143 ifa->ifa_addr = (struct sockaddr *)addr; in Win_getifaddrs()
177 ifa->ifa_addr = (struct sockaddr *)addr6; in Win_getifaddrs()
/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/dhcpcd/
Difaddrs.c68 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()
Dnet.c361 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 …]
Difaddrs.h19 struct sockaddr *ifa_addr; member
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c109 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/
Daddress_sorter_posix.cc355 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/
Difaddrs.cc39 CHECK_AND_PUSH(p->ifa_addr, sizeof(*p->ifa_addr)); in main()
/external/chromium_org/third_party/webrtc/base/
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()
Difaddrs-android.h26 struct sockaddr* ifa_addr; member
Dnetwork.cc258 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/
Difaddrs-android.cc86 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()
Difaddrs-android.h41 struct sockaddr* ifa_addr; member
Dnetwork.cc275 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/
Dfad-getad.c211 if (ifa->ifa_addr != NULL) { in pcap_findalldevs_interfaces()
212 addr = ifa->ifa_addr; in pcap_findalldevs_interfaces()
/external/chromium_org/net/base/
Dnet_util_posix.cc177 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/
Ddevice_util.mm100 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/
Duser_recv_thread.c119 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/
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.h273 void *ifa_addr; // (struct sockaddr *) member

12