/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 | 150 struct ifaddrs *ifap, *ifa; in pcap_findalldevs_interfaces() local 175 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) { in pcap_findalldevs_interfaces() 183 if (ifa->ifa_addr != NULL) { in pcap_findalldevs_interfaces() 184 addr = ifa->ifa_addr; in pcap_findalldevs_interfaces() 186 netmask = ifa->ifa_netmask; in pcap_findalldevs_interfaces() 208 if (ifa->ifa_flags & IFF_BROADCAST && in pcap_findalldevs_interfaces() 209 ifa->ifa_broadaddr != NULL) { in pcap_findalldevs_interfaces() 210 broadaddr = ifa->ifa_broadaddr; in pcap_findalldevs_interfaces() 216 if (ifa->ifa_flags & IFF_POINTOPOINT && in pcap_findalldevs_interfaces() 217 ifa->ifa_dstaddr != NULL) { in pcap_findalldevs_interfaces() [all …]
|
D | pcap-snf.c | 329 struct snf_ifaddrs *ifaddrs, *ifa; in snf_findalldevs() local 342 ifa = ifaddrs; in snf_findalldevs() 343 while (ifa) in snf_findalldevs() 362 curdev->name = strdup(ifa->snf_ifa_name); in snf_findalldevs() 370 ifa->snf_ifa_portnum); in snf_findalldevs() 410 ifa = ifa->snf_ifa_next; in snf_findalldevs() 427 struct snf_ifaddrs *ifaddrs, *ifa; in snf_create() local 447 ifa = ifaddrs; in snf_create() 448 while (ifa) { in snf_create() 449 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/toybox/toys/pending/ |
D | ping.c | 80 struct ifaddrs *ifsave, *ifa = 0; local 84 for (ifa = ifsave; ifa; ifa = ifa->ifa_next) { 85 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != family) continue; 86 if (!strcmp(ifa->ifa_name, TT.iface)) { 89 &((struct sockaddr_in *)ifa->ifa_addr)->sin_addr, 92 &((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr, 99 if (!ifa)
|
/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 | 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 | getaddr.c | 100 struct ifaddrmsg ifa; in getinterface_ip() local 112 memset(&ifa, 0, sizeof(ifa)); in getinterface_ip() 113 ifa.ifa_family = targ.family; in getinterface_ip() 123 send_ifaddrmsg(RTM_GETADDR, NLM_F_REQUEST | NLM_F_ROOT, &ifa, callbacks); in getinterface_ip()
|
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 | 934 static unsigned int get_ifa_flags(struct ifaddrmsg *ifa, in get_ifa_flags() argument 938 ifa->ifa_flags; in get_ifa_flags() 945 struct ifaddrmsg *ifa = NLMSG_DATA(n); in print_addrinfo() local 956 len -= NLMSG_LENGTH(sizeof(*ifa)); in print_addrinfo() 965 parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(ifa), in print_addrinfo() 966 n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa))); in print_addrinfo() 968 ifa_flags = get_ifa_flags(ifa, rta_tb[IFA_FLAGS]); in print_addrinfo() 975 if (filter.ifindex && filter.ifindex != ifa->ifa_index) in print_addrinfo() 977 if ((filter.scope^ifa->ifa_scope)&filter.scopemask) in print_addrinfo() 987 label = ll_idx_n2a(ifa->ifa_index, b1); in print_addrinfo() [all …]
|
/external/avahi/avahi-autoipd/ |
D | iface-linux.c | 133 struct ifaddrmsg *ifa; in process_nlmsg() local 138 ifa = NLMSG_DATA(n); in process_nlmsg() 140 if (ifa->ifa_family != AF_INET || (int) ifa->ifa_index != ifindex) in process_nlmsg() 143 l = NLMSG_PAYLOAD(n, sizeof(*ifa)); in process_nlmsg() 144 a = IFLA_RTA(ifa); in process_nlmsg() 253 struct ifaddrmsg *ifa; in iface_get_initial_state() local 281 n->nlmsg_len = NLMSG_LENGTH(sizeof(*ifa)); in iface_get_initial_state() 284 ifa = NLMSG_DATA(n); in iface_get_initial_state() 285 ifa->ifa_family = AF_INET; in iface_get_initial_state() 286 ifa->ifa_index = ifindex; in iface_get_initial_state()
|
/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/dnsmasq/contrib/wrt/ |
D | dhcp_release.c | 224 struct ifaddrmsg *ifa = NLMSG_DATA(h); in find_interface() local 226 unsigned int len1 = h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa)); in find_interface() 228 if (ifa->ifa_index == index && ifa->ifa_family == AF_INET) in find_interface() 232 netmask.s_addr = htonl(0xffffffff << (32 - ifa->ifa_prefixlen)); in find_interface() 235 for (rta = IFA_RTA(ifa); RTA_OK(rta, len1); rta = RTA_NEXT(rta, len1)) in find_interface()
|
/external/libnl/lib/route/ |
D | addr.c | 194 struct ifaddrmsg *ifa; in addr_msg_parser() local 204 err = nlmsg_parse(nlh, sizeof(*ifa), tb, IFA_MAX, addr_policy); in addr_msg_parser() 208 ifa = nlmsg_data(nlh); in addr_msg_parser() 209 addr->a_family = family = ifa->ifa_family; in addr_msg_parser() 210 addr->a_prefixlen = ifa->ifa_prefixlen; in addr_msg_parser() 211 addr->a_flags = ifa->ifa_flags; in addr_msg_parser() 212 addr->a_scope = ifa->ifa_scope; in addr_msg_parser() 213 addr->a_ifindex = ifa->ifa_index; in addr_msg_parser()
|
/external/icu/icu4c/source/data/curr/ |
D | shi_Latn.txt | 214 "frank ṣifa", 218 "frank ṣifa bisaw",
|