Home
last modified time | relevance | path

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

123

/external/usrsctp/usrsctplib/netinet/
Dsctp_bsd_addr.c435 if (ifa->ifa_addr == NULL) {
439 if (ifa->ifa_addr->sa_family != AF_INET6) {
444 if (ifa->ifa_addr->sa_family != AF_INET) {
449 if ((ifa->ifa_addr->sa_family != AF_INET) && (ifa->ifa_addr->sa_family != AF_INET6)) {
455 if ((ifa->ifa_addr->sa_family == AF_INET6) &&
456 IN6_IS_ADDR_UNSPECIFIED(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr)) {
462 if (ifa->ifa_addr->sa_family == AF_INET &&
463 ((struct sockaddr_in *)ifa->ifa_addr)->sin_addr.s_addr == 0) {
474 ifa->ifa_addr,
522 if (ifa->ifa_addr == NULL) {
[all …]
/external/libcups/scheduler/
Dnetwork.c136 if (addr->ifa_addr == NULL || in cupsdNetIFUpdate()
137 (addr->ifa_addr->sa_family != AF_INET in cupsdNetIFUpdate()
139 && addr->ifa_addr->sa_family != AF_INET6 in cupsdNetIFUpdate()
153 httpAddrLookup((http_addr_t *)(addr->ifa_addr), hostname, in cupsdNetIFUpdate()
163 if (httpAddrLocalhost((http_addr_t *)(addr->ifa_addr))) in cupsdNetIFUpdate()
166 httpAddrString((http_addr_t *)(addr->ifa_addr), hostname, in cupsdNetIFUpdate()
189 if (addr->ifa_addr->sa_family == AF_INET) in cupsdNetIFUpdate()
195 memcpy(&(temp->address), addr->ifa_addr, sizeof(struct sockaddr_in)); in cupsdNetIFUpdate()
209 memcpy(&(temp->address), addr->ifa_addr, sizeof(struct sockaddr_in6)); in cupsdNetIFUpdate()
234 else if (addr->ifa_addr->sa_family == AF_INET && in cupsdNetIFUpdate()
[all …]
/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
/external/openscreen/platform/impl/
Dnetwork_interface_mac.cc76 if (!(IFF_RUNNING & cur->ifa_flags) || !cur->ifa_addr) { in ProcessInterfacesList()
128 if (cur->ifa_addr->sa_family == AF_LINK) { // Hardware ethernet address. in ProcessInterfacesList()
129 auto* const addr_dl = reinterpret_cast<const sockaddr_dl*>(cur->ifa_addr); in ProcessInterfacesList()
135 } else if (cur->ifa_addr->sa_family == AF_INET6) { // Ipv6 address. in ProcessInterfacesList()
137 reinterpret_cast<const sockaddr_in6*>(cur->ifa_addr); in ProcessInterfacesList()
149 } else if (cur->ifa_addr->sa_family == AF_INET) { // Ipv4 address. in ProcessInterfacesList()
150 auto* const addr_in = reinterpret_cast<const sockaddr_in*>(cur->ifa_addr); in ProcessInterfacesList()
/external/curl/lib/
Dif2ip.c117 if(iface->ifa_addr != NULL) { in Curl_if2ip()
118 if(iface->ifa_addr->sa_family == af) { in Curl_if2ip()
129 unsigned int ifscope = Curl_ipv6_scope(iface->ifa_addr); in Curl_if2ip()
141 &((struct sockaddr_in6 *)(void *)iface->ifa_addr)->sin6_addr; in Curl_if2ip()
144 scopeid = ((struct sockaddr_in6 *)(void *)iface->ifa_addr) in Curl_if2ip()
162 &((struct sockaddr_in *)(void *)iface->ifa_addr)->sin_addr; in Curl_if2ip()
/external/libcups/cups/
Dgetifaddrs.c130 if ((temp->ifa_addr = calloc(1, sockaddr_len(&(ifp->ifr_addr)))) != NULL) in _cups_getifaddrs()
131 memcpy(temp->ifa_addr, &(ifp->ifr_addr), sockaddr_len(&(ifp->ifr_addr))); in _cups_getifaddrs()
224 if (addrs->ifa_addr) in _cups_freeifaddrs()
226 free(addrs->ifa_addr); in _cups_freeifaddrs()
227 addrs->ifa_addr = NULL; in _cups_freeifaddrs()
Dgetifaddrs-internal.h80 struct sockaddr *ifa_addr, /* Network address */ member
/external/webrtc/rtc_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.cc76 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses()
82 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses()
219 delete cursor->ifa_addr; in freeifaddrs()
Difaddrs_android.h25 struct sockaddr* ifa_addr; member
Dnet_helpers.cc190 if (cur->ifa_addr->sa_family == AF_INET) { in HasIPv4Enabled()
249 if (cur->ifa_addr->sa_family == AF_INET6) { in HasIPv6Enabled()
/external/libwebsockets/lib/plat/freertos/
Dfreertos-sockets.c151 if (!ifc->ifa_addr) in lws_interface_to_sa()
159 switch (ifc->ifa_addr->sa_family) { in lws_interface_to_sa()
169 &((struct sockaddr_in *)ifc->ifa_addr)->sin_addr, in lws_interface_to_sa()
174 (struct sockaddr_in *)ifc->ifa_addr, in lws_interface_to_sa()
180 &((struct sockaddr_in6 *)ifc->ifa_addr)->sin6_addr, in lws_interface_to_sa()
/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/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/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dtcp_server_utils_posix_ifaddrs.cc121 if (ifa_it->ifa_addr == nullptr) { in grpc_tcp_server_add_all_local_addrs()
123 } else if (ifa_it->ifa_addr->sa_family == AF_INET) { in grpc_tcp_server_add_all_local_addrs()
125 } else if (ifa_it->ifa_addr->sa_family == AF_INET6) { in grpc_tcp_server_add_all_local_addrs()
130 memcpy(addr.addr, ifa_it->ifa_addr, addr.len); in grpc_tcp_server_add_all_local_addrs()
/external/libwebsockets/lib/misc/
Dgetifaddrs.c145 (*end)->ifa_addr = lws_malloc(salen, "getifaddrs"); in getifaddrs2()
146 memcpy((*end)->ifa_addr, sa, salen); in getifaddrs2()
214 lws_free(p->ifa_addr); in freeifaddrs()
250 if (p->ifa_addr) in print_ifaddrs()
251 print_addr("addr", p->ifa_addr); in print_ifaddrs()
Dgetifaddrs.h61 struct sockaddr *ifa_addr; member
/external/libwebsockets/lib/plat/unix/
Dunix-sockets.c198 if (!ifc->ifa_addr) in lws_interface_to_sa()
203 ifc->ifa_addr->sa_family, ipv6); in lws_interface_to_sa()
208 switch (ifc->ifa_addr->sa_family) { in lws_interface_to_sa()
225 &((struct sockaddr_in *)ifc->ifa_addr)->sin_addr, in lws_interface_to_sa()
231 (struct sockaddr_in *)ifc->ifa_addr, in lws_interface_to_sa()
237 &((struct sockaddr_in6 *)ifc->ifa_addr)->sin6_addr, in lws_interface_to_sa()
/external/compiler-rt/test/msan/
Difaddrs.cc43 CHECK_AND_PUSH(p->ifa_addr, sizeof(*p->ifa_addr)); in main()
/external/llvm-project/compiler-rt/test/msan/
Difaddrs.cpp43 CHECK_AND_PUSH(p->ifa_addr, sizeof(*p->ifa_addr)); in main()
/external/libpcap/
Dfad-getad.c221 if (ifa->ifa_addr != NULL) { in pcap_findalldevs_interfaces()
222 addr = ifa->ifa_addr; in pcap_findalldevs_interfaces()
/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 …]
/external/toybox/toys/net/
Dping.c157 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family!=ai->ai_family in ping_main()
159 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()

123