/external/iputils/ninfod/ |
D | ninfod_addrs.c | 170 struct ni_ifaddrs *ifa; in pr_nodeinfo_ipv6addr() local 172 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in pr_nodeinfo_ipv6addr() 173 if (!ifa->ifa_addr) in pr_nodeinfo_ipv6addr() 175 if (ifa->ifa_flags & (IFA_F_TENTATIVE|IFA_F_SECONDARY)) in pr_nodeinfo_ipv6addr() 188 IN6_ARE_ADDR_EQUAL((struct in6_addr *)ifa->ifa_addr, in pr_nodeinfo_ipv6addr() 198 ifindex = ifa->ifa_ifindex; in pr_nodeinfo_ipv6addr() 218 struct ni_ifaddrs *ifa; in pr_nodeinfo_ipv6addr() local 225 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in pr_nodeinfo_ipv6addr() 226 if (!ifa->ifa_addr) in pr_nodeinfo_ipv6addr() 228 if (ifa->ifa_flags & (IFA_F_TENTATIVE|IFA_F_SECONDARY)) in pr_nodeinfo_ipv6addr() [all …]
|
D | ni_ifaddrs.c | 352 struct ni_ifaddrs *ifl = NULL, *ifa = NULL; in ni_ifaddrs() local 361 ifa = data = calloc(1, NLMSG_ALIGN(sizeof(struct ni_ifaddrs[icnt])) in ni_ifaddrs() 364 *ifap = ifa; in ni_ifaddrs() 416 ifa->ifa_ifindex = nlm_index; in ni_ifaddrs() 417 ifa->ifa_flags = nlm_flags; in ni_ifaddrs() 429 ifl->ifa_next = ifa; in ni_ifaddrs() 468 ifa->ifa_addr = data; in ni_ifaddrs() 478 ifa->ifa_cacheinfo = xdata; 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() [all …]
|
D | ni_ifaddrs.h | 42 void ni_freeifaddrs(struct ni_ifaddrs *ifa);
|
/external/dhcpcd-6.8.2/ |
D | ifaddrs.c | 39 struct ifaddrs *ifa; in get_interface() local 51 ifa = malloc(sizeof(struct ifaddrs)); in get_interface() 52 if (!ifa) in get_interface() 54 memset(ifa, 0, sizeof(struct ifaddrs)); in get_interface() 56 ifa->ifa_name = malloc(strlen(name)+1); in get_interface() 57 if (!ifa->ifa_name) { in get_interface() 58 free(ifa); in get_interface() 61 strcpy(ifa->ifa_name, name); in get_interface() 62 ifa->ifa_flags = flags; in get_interface() 70 ifa->ifa_addr = (struct sockaddr *)saddr; in get_interface() [all …]
|
D | if.c | 194 struct ifaddrs *ifa; in if_learnaddrs1() local 205 for (ifa = ifaddrs; ifa; ifa = ifa->ifa_next) { in if_learnaddrs1() 206 if (ifa->ifa_addr == NULL) in if_learnaddrs1() 208 if ((ifp = if_find(ifs, ifa->ifa_name)) == NULL) in if_learnaddrs1() 210 switch(ifa->ifa_addr->sa_family) { in if_learnaddrs1() 214 (void *)ifa->ifa_addr; in if_learnaddrs1() 216 (void *)ifa->ifa_netmask; in if_learnaddrs1() 217 if (ifa->ifa_flags & IFF_POINTOPOINT) in if_learnaddrs1() 219 (void *)ifa->ifa_dstaddr; in if_learnaddrs1() 223 ipv4_handleifa(ctx, RTM_NEWADDR, ifs, ifa->ifa_name, in if_learnaddrs1() [all …]
|
D | if-linux.c | 583 struct ifaddrmsg *ifa; in link_addr() local 595 if (len < sizeof(*ifa)) { in link_addr() 599 ifa = NLMSG_DATA(nlm); in link_addr() 600 if ((ifp = if_findindex(ctx->ifaces, ifa->ifa_index)) == NULL) { in link_addr() 605 rta = (struct rtattr *)IFA_RTA(ifa); in link_addr() 606 len = NLMSG_PAYLOAD(nlm, sizeof(*ifa)); in link_addr() 607 switch (ifa->ifa_family) { in link_addr() 612 inet_cidrtoaddr(ifa->ifa_prefixlen, &net); in link_addr() 629 &addr, &net, &dest, ifa->ifa_flags); in link_addr() 645 &addr6, ifa->ifa_prefixlen, ifa->ifa_flags); in link_addr() [all …]
|
D | if-bsd.c | 789 struct in6_aliasreq ifa; in if_address6() local 795 memset(&ifa, 0, sizeof(ifa)); in if_address6() 796 strlcpy(ifa.ifra_name, a->iface->name, sizeof(ifa.ifra_name)); in if_address6() 807 ifa.ifra_flags |= IN6_IFF_AUTOCONF; in if_address6() 811 ifa.ifra_flags |= IN6_IFF_TEMPORARY; in if_address6() 820 ADDADDR(&ifa.ifra_addr, &a->addr); in if_address6() 821 ifa_scope(&ifa.ifra_addr, a->iface->index); in if_address6() 823 ADDADDR(&ifa.ifra_prefixmask, &mask); in if_address6() 824 ifa.ifra_lifetime.ia6t_vltime = a->prefix_vltime; in if_address6() 825 ifa.ifra_lifetime.ia6t_pltime = a->prefix_pltime; in if_address6() [all …]
|
D | ifaddrs.h | 32 extern void freeifaddrs(struct ifaddrs *ifa);
|
/external/libpcap/ |
D | fad-getad.c | 151 struct ifaddrs *ifap, *ifa; in pcap_findalldevs_interfaces() local 176 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) { in pcap_findalldevs_interfaces() 188 p = strchr(ifa->ifa_name, ':'); in pcap_findalldevs_interfaces() 209 if (!(*check_usable)(ifa->ifa_name)) { in pcap_findalldevs_interfaces() 223 if (ifa->ifa_addr != NULL) { in pcap_findalldevs_interfaces() 224 addr = ifa->ifa_addr; in pcap_findalldevs_interfaces() 226 netmask = ifa->ifa_netmask; in pcap_findalldevs_interfaces() 248 if (ifa->ifa_flags & IFF_BROADCAST && in pcap_findalldevs_interfaces() 249 ifa->ifa_broadaddr != NULL) { in pcap_findalldevs_interfaces() 250 broadaddr = ifa->ifa_broadaddr; in pcap_findalldevs_interfaces() [all …]
|
D | pcap-snf.c | 326 struct snf_ifaddrs *ifaddrs, *ifa; in snf_findalldevs() local 339 ifa = ifaddrs; in snf_findalldevs() 340 while (ifa) in snf_findalldevs() 359 curdev->name = strdup(ifa->snf_ifa_name); in snf_findalldevs() 367 ifa->snf_ifa_portnum); in snf_findalldevs() 407 ifa = ifa->snf_ifa_next; in snf_findalldevs() 424 struct snf_ifaddrs *ifaddrs, *ifa; in snf_create() local 444 ifa = ifaddrs; in snf_create() 445 while (ifa) { in snf_create() 446 if (!strncmp(device, ifa->snf_ifa_name, devlen)) { in snf_create() [all …]
|
/external/iputils/ |
D | rarpd.c | 92 struct ifaddr *ifa; in load_if() local 111 while ((ifa = ifl->ifa_list) != NULL) { in load_if() 112 ifl->ifa_list = ifa->next; in load_if() 113 free(ifa); in load_if() 174 for (ifa = ifl->ifa_list; ifa; ifa = ifa->next) { in load_if() 175 if (ifa->local == addr && in load_if() 176 ifa->prefix == prefix && in load_if() 177 ifa->mask == mask) in load_if() 180 if (ifa == NULL) { in load_if() 183 ifa = (struct ifaddr*)malloc(sizeof(*ifa)); in load_if() [all …]
|
D | arping.c | 68 struct ifaddrs *ifa; member 598 struct ifaddrs *ifa0, *ifa; in find_device_by_ifaddrs() local 607 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in find_device_by_ifaddrs() 608 if (!ifa->ifa_addr) in find_device_by_ifaddrs() 610 if (ifa->ifa_addr->sa_family != AF_PACKET) in find_device_by_ifaddrs() 612 if (device.name && ifa->ifa_name && strcmp(ifa->ifa_name, device.name)) in find_device_by_ifaddrs() 615 if (check_ifflags(ifa->ifa_flags, device.name != NULL) < 0) in find_device_by_ifaddrs() 618 if (!((struct sockaddr_ll *)ifa->ifa_addr)->sll_halen) in find_device_by_ifaddrs() 620 if (!ifa->ifa_broadaddr) in find_device_by_ifaddrs() 623 device.ifa = ifa; in find_device_by_ifaddrs() [all …]
|
D | ping.c | 396 struct ifaddrs *ifa0, *ifa; in main() local 404 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in main() 405 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_INET) in main() 407 if (!strncmp(ifa->ifa_name, device, sizeof(device) - 1) && in main() 408 !memcmp(&((struct sockaddr_in *)ifa->ifa_addr)->sin_addr, in main() 413 if (!ifa) in main()
|
D | ping6.c | 1008 struct ifaddrs *ifa0, *ifa; in main() local 1015 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in main() 1016 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_INET6) in main() 1018 if (!strncmp(ifa->ifa_name, device, sizeof(device) - 1) && in main() 1019 IN6_ARE_ADDR_EQUAL(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr, in main() 1023 if (!ifa) in main()
|
/external/android-clat/ |
D | setif.c | 42 struct ifaddrmsg ifa; in add_address() local 51 memset(&ifa, 0, sizeof(ifa)); in add_address() 52 if (!(ifa.ifa_index = if_nametoindex(ifname))) { in add_address() 56 ifa.ifa_family = family; in add_address() 57 ifa.ifa_prefixlen = prefixlen; in add_address() 58 ifa.ifa_scope = RT_SCOPE_UNIVERSE; in add_address() 60 … = nlmsg_alloc_ifaddr(RTM_NEWADDR, NLM_F_ACK | NLM_F_REQUEST | NLM_F_CREATE | NLM_F_REPLACE, &ifa); in add_address()
|
D | getaddr.c | 101 struct ifaddrmsg ifa; in getinterface_ip() local 113 memset(&ifa, 0, sizeof(ifa)); in getinterface_ip() 114 ifa.ifa_family = targ.family; in getinterface_ip() 124 send_ifaddrmsg(RTM_GETADDR, NLM_F_REQUEST | NLM_F_ROOT, &ifa, callbacks); in getinterface_ip()
|
D | netlink_msg.c | 83 struct nl_msg *nlmsg_alloc_ifaddr(uint16_t type, uint16_t flags, struct ifaddrmsg *ifa) { in nlmsg_alloc_ifaddr() argument 84 return nlmsg_alloc_generic(type, flags, ifa, sizeof(*ifa)); in nlmsg_alloc_ifaddr() 157 void send_ifaddrmsg(uint16_t type, uint16_t flags, struct ifaddrmsg *ifa, struct nl_cb *callbacks) { in send_ifaddrmsg() argument 160 msg = nlmsg_alloc_ifaddr(type, flags, ifa); in send_ifaddrmsg()
|
D | netlink_msg.h | 22 struct nl_msg *nlmsg_alloc_ifaddr(uint16_t type, uint16_t flags, struct ifaddrmsg *ifa); 26 void send_ifaddrmsg(uint16_t type, uint16_t flags, struct ifaddrmsg *ifa, struct nl_cb *callbacks);
|
/external/iproute2/ip/ |
D | ipaddress.c | 1373 static unsigned int get_ifa_flags(struct ifaddrmsg *ifa, in get_ifa_flags() argument 1377 ifa->ifa_flags; in get_ifa_flags() 1400 static void print_ifa_flags(FILE *fp, const struct ifaddrmsg *ifa, in print_ifa_flags() argument 1414 ifa->ifa_family == AF_INET6) { in print_ifa_flags() 1481 struct ifaddrmsg *ifa = NLMSG_DATA(n); in print_addrinfo() local 1490 len -= NLMSG_LENGTH(sizeof(*ifa)); in print_addrinfo() 1499 parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(ifa), in print_addrinfo() 1500 n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa))); in print_addrinfo() 1502 ifa_flags = get_ifa_flags(ifa, rta_tb[IFA_FLAGS]); in print_addrinfo() 1509 if (filter.ifindex && filter.ifindex != ifa->ifa_index) in print_addrinfo() [all …]
|
/external/toybox/toys/pending/ |
D | ping.c | 87 struct ifaddrs *ifa, *ifa2 = 0; in ping_main() local 137 for (ifa = ifa2; ifa; ifa = ifa->ifa_next) { in ping_main() 138 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family!=ai->ai_family in ping_main() 139 || strcmp(ifa->ifa_name, TT.I)) continue; in ping_main() 140 sa = (void *)ifa->ifa_addr; in ping_main() 144 if (ifa) break; in ping_main()
|
D | ip.c | 954 struct ifaddrmsg *ifa = NLMSG_DATA(h); in print_addrinfo() local 957 if ((len = h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa))) < 0) { in print_addrinfo() 962 for (rta = IFA_RTA(ifa); RTA_OK(rta, len); rta=RTA_NEXT(rta, len)) in print_addrinfo() 967 if ((addrinfo.scope ^ ifa->ifa_scope)&addrinfo.scopemask) return 0; in print_addrinfo() 968 if (addrinfo.ifindex && addrinfo.ifindex != ifa->ifa_index) return 0; in print_addrinfo() 970 if (flag_l && addrinfo.label && ifa->ifa_family == AF_INET6) return 0; in print_addrinfo() 979 if (ifa->ifa_index == addrinfo.ifindex) { in print_addrinfo() 990 if (!if_indextoname(ifa->ifa_index, lbuf)) perror_exit(NULL); in print_addrinfo() 991 printf("%u: %s",ifa->ifa_index, lbuf); in print_addrinfo() 994 sprintf(scope, " scope %s ", namefromRPDB(ifa->ifa_scope, RPDB_rtscopes)); in print_addrinfo() [all …]
|
/external/dnsmasq/src/ |
D | netlink.c | 188 struct ifaddrmsg *ifa = NLMSG_DATA(h); in iface_enumerate() local 189 struct rtattr *rta = IFA_RTA(ifa); in iface_enumerate() 190 unsigned int len1 = h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa)); in iface_enumerate() 192 if (ifa->ifa_family == AF_INET) in iface_enumerate() 196 netmask.s_addr = htonl(0xffffffff << (32 - ifa->ifa_prefixlen)); in iface_enumerate() 211 if (!((*ipv4_callback)(addr, ifa->ifa_index, netmask, broadcast, parm))) in iface_enumerate() 215 else if (ifa->ifa_family == AF_INET6) in iface_enumerate() 227 if (!((*ipv6_callback)(addrp, ifa->ifa_index, ifa->ifa_index, parm))) in iface_enumerate()
|
/external/mdnsresponder/mDNSWindows/ |
D | mDNSWin32.c | 1882 struct ifaddrs * ifa; in SetReverseMapSearchDomainList() local 1884 ifa = myGetIfAddrs( 1 ); in SetReverseMapSearchDomainList() 1885 while (ifa) in SetReverseMapSearchDomainList() 1889 …if (ifa->ifa_addr->sa_family == AF_INET && !SetupAddr(&addr, ifa->ifa_addr) && !(ifa->ifa_flags & … in SetReverseMapSearchDomainList() 1894 if (!SetupAddr(&netmask, ifa->ifa_netmask)) in SetReverseMapSearchDomainList() 1904 ifa = ifa->ifa_next; in SetReverseMapSearchDomainList() 3548 struct ifaddrs * ifa; in getifaddrs_ipv6() local 3663 ifa = (struct ifaddrs *) calloc( 1, sizeof( struct ifaddrs ) ); in getifaddrs_ipv6() 3664 require_action( ifa, exit, err = WSAENOBUFS ); in getifaddrs_ipv6() 3666 *next = ifa; in getifaddrs_ipv6() [all …]
|
/external/libnl/lib/route/ |
D | addr.c | 200 struct ifaddrmsg *ifa; in addr_msg_parser() local 212 err = nlmsg_parse(nlh, sizeof(*ifa), tb, IFA_MAX, addr_policy); in addr_msg_parser() 216 ifa = nlmsg_data(nlh); in addr_msg_parser() 217 addr->a_family = family = ifa->ifa_family; in addr_msg_parser() 218 addr->a_prefixlen = ifa->ifa_prefixlen; in addr_msg_parser() 219 addr->a_scope = ifa->ifa_scope; in addr_msg_parser() 221 ifa->ifa_flags; in addr_msg_parser() 222 addr->a_ifindex = ifa->ifa_index; in addr_msg_parser()
|
/external/icu/icu4c/source/data/curr/ |
D | shi_Latn.txt | 208 "frank ṣifa", 212 "frank ṣifa bisaw",
|