Home
last modified time | relevance | path

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

/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/toybox/toys/pending/
Dping.c85 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != family) continue;
89 &((struct sockaddr_in *)ifa->ifa_addr)->sin_addr,
92 &((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr,
/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/dhcpcd/
Difaddrs.c69 ifa->ifa_addr = (struct sockaddr *)saddr; in get_interface()
91 ifa->ifa_addr = (struct sockaddr *)hwaddr; in get_interface()
141 if (ifp->ifa_addr) in freeifaddrs()
142 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/compiler-rt/test/msan/
Difaddrs.cc39 CHECK_AND_PUSH(p->ifa_addr, sizeof(*p->ifa_addr)); in main()
/external/libpcap/
Dfad-getad.c211 if (ifa->ifa_addr != NULL) { in pcap_findalldevs_interfaces()
212 addr = ifa->ifa_addr; in pcap_findalldevs_interfaces()
/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.h282 void *ifa_addr; // (struct sockaddr *) member
Dsanitizer_platform_limits_posix.cc1107 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
Dsanitizer_common_interceptors.inc4146 if (p->ifa_addr)
4147 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, p->ifa_addr, struct_sockaddr_sz);