Home
last modified time | relevance | path

Searched refs:ifa_name (Results 1 – 23 of 23) sorted by relevance

/external/dhcpcd-6.8.2/
Difaddrs.c56 ifa->ifa_name = malloc(strlen(name)+1); in get_interface()
57 if (!ifa->ifa_name) { in get_interface()
61 strcpy(ifa->ifa_name, name); in get_interface()
87 ifc_get_ifindex(ifa->ifa_name, &hwaddr->sll_ifindex); in get_interface()
142 free(ifp->ifa_name); in freeifaddrs()
Dif.c208 if ((ifp = if_find(ifs, ifa->ifa_name)) == NULL) in if_learnaddrs1()
223 ipv4_handleifa(ctx, RTM_NEWADDR, ifs, ifa->ifa_name, in if_learnaddrs1()
242 ifa->ifa_name, in if_learnaddrs1()
316 if (strcmp(ifp->name, ifa->ifa_name) == 0) in if_discover()
338 if (strcmp(ifn, ifa->ifa_name) == 0) in if_discover()
344 strlcpy(ifn, ifa->ifa_name, sizeof(ifn)); in if_discover()
346 strlcpy(alias, ifa->ifa_name, sizeof(alias)); in if_discover()
351 if (argc == -1 && strcmp(argv[0], ifa->ifa_name) != 0) in if_discover()
573 __func__, ifa->ifa_name); in if_discover()
Difaddrs.h17 char *ifa_name; member
/external/libpcap/
Dfad-getad.c188 p = strchr(ifa->ifa_name, ':'); in pcap_findalldevs_interfaces()
209 if (!(*check_usable)(ifa->ifa_name)) { in pcap_findalldevs_interfaces()
268 if (add_addr_to_iflist(&devlist, ifa->ifa_name, in pcap_findalldevs_interfaces()
269 if_flags_to_pcap_flags(ifa->ifa_name, ifa->ifa_flags), in pcap_findalldevs_interfaces()
/external/libcups/cups/
Dgetifaddrs.c131 temp->ifa_name = strdup(ifp->ifr_name); in _cups_getifaddrs()
221 if (addrs->ifa_name) in _cups_freeifaddrs()
223 free(addrs->ifa_name); in _cups_freeifaddrs()
224 addrs->ifa_name = NULL; in _cups_freeifaddrs()
Dhttp-private.h406 char *ifa_name; /* Name of interface */ member
/external/webrtc/webrtc/base/
Difaddrs-android.cc45 ifaddr->ifa_name = new char[strlen(name) + 1]; in set_ifname()
46 strncpy(ifaddr->ifa_name, name, strlen(name) + 1); in set_ifname()
57 strncpy(ifr.ifr_name, ifaddr->ifa_name, IFNAMSIZ - 1); in set_flags()
213 delete[] cursor->ifa_name; in freeifaddrs()
Difaddrs-android.h24 char* ifa_name; member
Dnetwork.cc437 std::string key = MakeNetworkKey(std::string(cursor->ifa_name), in ConvertIfAddrs()
447 if (strncmp(cursor->ifa_name, "pdp_ip", 6) == 0) { in ConvertIfAddrs()
452 scoped_ptr<Network> network(new Network(cursor->ifa_name, in ConvertIfAddrs()
453 cursor->ifa_name, prefix, in ConvertIfAddrs()
Dmacifaddrs_converter.cc260 interface->ifa_name, interface->ifa_addr, &native_attributes)) { in ConvertNativeAttributesToIPAttributes()
Dnetwork_unittest.cc119 if_addr->ifa_name = if_name; in AddIpv6Address()
709 list.ifa_name = const_cast<char*>("test_iface"); in TEST_F()
739 list.ifa_name = const_cast<char*>("test_iface"); in TEST_F()
/external/curl/lib/
Dif2ip.c107 if(strcasecompare(iface->ifa_name, interf)) { in Curl_if_is_interface_name()
137 if(strcasecompare(iface->ifa_name, interf)) { in Curl_if2ip()
185 strcasecompare(iface->ifa_name, interf)) { in Curl_if2ip()
/external/compiler-rt/test/msan/
Difaddrs.cc42 CHECK_AND_PUSH(p->ifa_name, strlen(p->ifa_name) + 1); in main()
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c111 char ifa_name[16]; member
260 memcpy(i->ifa_name, ifr.ifr_name, 16); in getifaddrs()
367 if (!suitable_ifaddr(ifap->ifa_name, ifap->ifa_addr)) { in grab_myaddrs()
370 ifap->ifa_name, in grab_myaddrs()
403 if_nametoindex(ifap->ifa_name); in grab_myaddrs()
416 addr1, ifap->ifa_name); in grab_myaddrs()
/external/mdnsresponder/mDNSWindows/
DmDNSWin32.c2492 p->ifa_name ? p->ifa_name : "<null>", p->ifa_extra.index, p->ifa_addr ); in SetupInterfaceList()
2547 p->ifa_name ? p->ifa_name : "<null>", p->ifa_extra.index, p->ifa_addr ); in SetupInterfaceList()
2606 …loopbackv4->ifa_name ? loopbackv4->ifa_name : "<null>", loopbackv4->ifa_extra.index, loopbackv4->i… in SetupInterfaceList()
2636 …loopbackv6->ifa_name ? loopbackv6->ifa_name : "<null>", loopbackv6->ifa_extra.index, loopbackv6->i… in SetupInterfaceList()
2753 check( strlen( inIFA->ifa_name ) < sizeof( ifd->name ) ); in SetupInterface()
2754 strncpy( ifd->name, inIFA->ifa_name, sizeof( ifd->name ) - 1 ); in SetupInterface()
2757 strncpy(ifd->interfaceInfo.ifname, inIFA->ifa_name, sizeof(ifd->interfaceInfo.ifname)); in SetupInterface()
3672 ifa->ifa_name = (char *) malloc( size ); in getifaddrs_ipv6()
3673 require_action( ifa->ifa_name, exit, err = WSAENOBUFS ); in getifaddrs_ipv6()
3674 memcpy( ifa->ifa_name, iaa->AdapterName, size ); in getifaddrs_ipv6()
[all …]
DmDNSWin32.h171 char * ifa_name; member
/external/iputils/
Darping.c612 if (device.name && ifa->ifa_name && strcmp(ifa->ifa_name, device.name)) in find_device_by_ifaddrs()
630 device.ifindex = if_nametoindex(device.ifa->ifa_name); in find_device_by_ifaddrs()
636 device.name = device.ifa->ifa_name; in find_device_by_ifaddrs()
Dping.c407 if (!strncmp(ifa->ifa_name, device, sizeof(device) - 1) && in main()
Dping6.c1018 if (!strncmp(ifa->ifa_name, device, sizeof(device) - 1) && in main()
/external/toybox/toys/pending/
Dping.c139 || strcmp(ifa->ifa_name, TT.I)) continue; in ping_main()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_platform_limits_posix.h296 char *ifa_name; member
Dsanitizer_platform_limits_posix.cc1167 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
Dsanitizer_common_interceptors.inc4673 if (p->ifa_name)
4674 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, p->ifa_name,
4675 REAL(strlen)(p->ifa_name) + 1);