/external/libpcap/ |
D | fad-gifc.c | 211 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); in pcap_findalldevs_interfaces() 261 memcpy(&ifrnetmask.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces() 262 sizeof(ifrnetmask.ifr_addr)); in pcap_findalldevs_interfaces() 280 netmask = &ifrnetmask.ifr_addr; in pcap_findalldevs_interfaces() 291 memcpy(&ifrbroadaddr.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces() 292 sizeof(ifrbroadaddr.ifr_addr)); in pcap_findalldevs_interfaces() 330 memcpy(&ifrdstaddr.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces() 331 sizeof(ifrdstaddr.ifr_addr)); in pcap_findalldevs_interfaces() 394 ifrflags.ifr_flags, &ifrp->ifr_addr, in pcap_findalldevs_interfaces() 395 SA_LEN(&ifrp->ifr_addr), netmask, netmask_size, in pcap_findalldevs_interfaces()
|
D | inet.c | 925 ifr.ifr_addr.sa_family = AF_INET; 940 sin4 = (struct sockaddr_in *)&ifr.ifr_addr; 945 ifr.ifr_addr.sa_family = AF_INET;
|
/external/dnsmasq/src/ |
D | bpf.c | 76 if (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_ifru)) in iface_enumerate() 77 len = ifr->ifr_addr.sa_len + offsetof(struct ifreq, ifr_ifru); in iface_enumerate() 86 if (ifr->ifr_addr.sa_family == AF_INET && ipv4_callback) in iface_enumerate() 90 addr = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; in iface_enumerate() 93 netmask = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; in iface_enumerate() 95 broadcast = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; in iface_enumerate() 103 else if (ifr->ifr_addr.sa_family == AF_INET6 && ipv6_callback) in iface_enumerate() 105 struct in6_addr *addr = &((struct sockaddr_in6 *)&ifr->ifr_addr)->sin6_addr; in iface_enumerate() 113 (int)((struct sockaddr_in6 *)&ifr->ifr_addr)->sin6_scope_id, in iface_enumerate() 183 ifr->ifr_addr.sa_family = AF_LINK; in send_via_bpf() [all …]
|
D | dhcp.c | 207 ifr.ifr_addr.sa_family = AF_INET; in dhcp_packet() 211 iface_addr = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr; in dhcp_packet() 230 iface_addr = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr; in dhcp_packet() 288 mess->hlen > sizeof(ifr.ifr_addr.sa_data) || mess->htype == 0) in dhcp_packet()
|
/external/strace/ |
D | sock.c | 47 printxval(addrfams, ifr->ifr_addr.sa_family, "AF_???"); in print_ifreq_addr() 49 if (ifr->ifr_addr.sa_family == AF_INET) { in print_ifreq_addr() 51 (struct sockaddr_in *) &ifr->ifr_addr; in print_ifreq_addr() 54 printstr(tcp, addr + offsetof(struct ifreq, ifr_addr.sa_data), in print_ifreq_addr() 55 sizeof(ifr->ifr_addr.sa_data)); in print_ifreq_addr()
|
/external/toybox/toys/other/ |
D | ifconfig.c | 132 ifre.ifr_addr.sa_family = AF_INET; in display_ifconfig() 133 memset(&ifre.ifr_addr, 0, sizeof(ifre.ifr_addr)); in display_ifconfig() 135 pp = (char *)&ifre.ifr_addr; in display_ifconfig() 136 for (i = 0; i<sizeof(ifre.ifr_addr); i++) if (pp[i]) break; in display_ifconfig() 138 if (i != sizeof(ifre.ifr_addr)) { in display_ifconfig() 139 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; in display_ifconfig() 483 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; in ifconfig_main()
|
/external/libpcap/Win32/Include/net/ |
D | if.h | 170 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro 182 ((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \ 184 (ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 283 if (sizeof(struct ifreq) > sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr)) in get_ifi_info() 286 ptr += sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr); in get_ifi_info() 290 if (ifr->ifr_addr.sa_family != family) in get_ifi_info() 338 switch (ifr->ifr_addr.sa_family) { in get_ifi_info() 340 sinptr = (struct sockaddr_in *) &ifr->ifr_addr; in get_ifi_info() 368 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_addr; in get_ifi_info() 419 sinptr6 = (struct sockaddr_in6 *) &ifr->ifr_addr; in get_ifi_info() 439 memcpy(&ifr6.ifr_ifru.ifru_addr, &ifr->ifr_addr, sizeof(ifr6.ifr_ifru.ifru_addr)); in get_ifi_info()
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 479 (sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) > sizeof(struct ifreq) \ in grab_myaddrs() 480 ? sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) : sizeof(struct ifreq)) in grab_myaddrs() 486 switch (ifr->ifr_addr.sa_family) { in grab_myaddrs() 491 if (!suitable_ifaddr(ifr->ifr_name, &ifr->ifr_addr)) { in grab_myaddrs() 495 saddrwop2str(&ifr->ifr_addr)); in grab_myaddrs() 504 p->addr = dupsaddr(&ifr->ifr_addr); in grab_myaddrs() 599 ifr6.ifr_addr = *(const struct sockaddr_in6 *)ifaddr;
|
/external/curl/lib/ |
D | if2ip.c | 231 req.ifr_addr.sa_family = AF_INET; in Curl_if2ip() 241 s = (struct sockaddr_in *)&req.ifr_addr; in Curl_if2ip()
|
D | if2ip.h | 71 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/external/autotest/client/deps/lansim/src/py/ |
D | tuntap.py | 156 ifr_name, ifr_family, ifr_type, ifr_addr = unpack_struct_ifreq( 161 return socket.inet_ntoa(ifr_addr[:4])
|
/external/ppp/pppd/ |
D | sys-linux.c | 1804 if (ifr->ifr_addr.sa_family == AF_INET) { in get_ether_addr() 1805 ina = SIN_ADDR(ifr->ifr_addr); in get_ether_addr() 1822 mask = SIN_ADDR(ifreq.ifr_addr); in get_ether_addr() 1939 if (ifr->ifr_addr.sa_family != AF_INET) in GetMask() 1941 ina = SIN_ADDR(ifr->ifr_addr); in GetMask() 1958 mask |= SIN_ADDR(ifreq.ifr_addr); in GetMask() 2374 SET_SA_FAMILY (ifr.ifr_addr, AF_INET); in sifaddr() 2382 SIN_ADDR(ifr.ifr_addr) = our_adr; in sifaddr() 2501 SET_SA_FAMILY(ifr.ifr_addr, AF_INET); in cifaddr() 2769 struct sockaddr_ipx *sipx = (struct sockaddr_ipx *) &ifr.ifr_addr; in sipxfaddr() [all …]
|
D | sys-solaris.c | 1978 ifr.ifr_addr.sa_family = AF_INET; 1979 INET_ADDR(ifr.ifr_addr) = m; 1984 ifr.ifr_addr.sa_family = AF_INET; 1985 INET_ADDR(ifr.ifr_addr) = o; 2178 if (ifr->ifr_addr.sa_family != AF_INET) 2195 ina = INET_ADDR(ifr->ifr_addr); 2196 mask = INET_ADDR(ifreq.ifr_addr); 2433 if (ifr->ifr_addr.sa_family != AF_INET) 2435 ina = INET_ADDR(ifr->ifr_addr); 2452 mask |= INET_ADDR(ifreq.ifr_addr);
|
/external/android-clat/ |
D | clatd_microbenchmark.c | 77 init_sockaddr_in((struct sockaddr_in *) &ifr.ifr_addr, "192.0.0.4"); in setup_tun() 79 init_sockaddr_in((struct sockaddr_in *) &ifr.ifr_addr, "255.255.255.248"); in setup_tun()
|
/external/toybox/toys/pending/ |
D | arping.c | 59 req.ifr_addr.sa_family = AF_INET; in get_interface() 68 ip = (struct sockaddr_in*) &req.ifr_addr; in get_interface()
|
/external/iputils/ |
D | rdisc.c | 1160 if (ifr->ifr_addr.sa_family != AF_INET) in initifs() 1170 sin = (struct sockaddr_in *)ALLIGN(&ifr->ifr_addr); in initifs() 1184 sin = (struct sockaddr_in *)ALLIGN(&ifreq.ifr_addr); in initifs() 1199 sin = (struct sockaddr_in *)ALLIGN(&ifreq.ifr_addr); in initifs() 1206 sin = (struct sockaddr_in *)ALLIGN(&ifreq.ifr_addr); in initifs()
|
D | rarpd.c | 125 if (ifrp->ifr_addr.sa_family != AF_INET) in load_if() 127 addr = ((struct sockaddr_in*)&ifrp->ifr_addr)->sin_addr.s_addr; in load_if()
|
/external/dhcpcd-6.8.2/ |
D | if-bsd.c | 733 sin = (struct sockaddr_in *)(void *)&ifr.ifr_addr; in if_addrflags() 1089 ifr6.ifr_addr.sin6_family = AF_INET6; in if_addrflags6() 1090 ifr6.ifr_addr.sin6_addr = *addr; in if_addrflags6() 1091 ifa_scope(&ifr6.ifr_addr, ifp->index); in if_addrflags6() 1110 ifr6.ifr_addr.sin6_family = AF_INET6; in if_getlifetime6() 1111 ifr6.ifr_addr.sin6_addr = ia->addr; in if_getlifetime6() 1112 ifa_scope(&ifr6.ifr_addr, ia->iface->index); in if_getlifetime6()
|
/external/iproute2/include/linux/ |
D | if.h | 229 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/external/kernel-headers/original/uapi/linux/ |
D | if.h | 229 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/external/wpa_supplicant_8/src/ap/ |
D | iapp.c | 419 paddr = (struct sockaddr_in *) &ifr.ifr_addr; in iapp_init() 434 paddr = (struct sockaddr_in *) &ifr.ifr_addr; in iapp_init()
|
/external/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 248 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) in get_node_id() 279 sdlp = (struct sockaddr_dl *) &ifrp->ifr_addr; in get_node_id()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_wired.c | 528 dlp = (struct sockaddr_dl *) &ifr.ifr_addr; in wpa_driver_wired_multi() 541 sap = (struct sockaddr *) &ifr.ifr_addr; in wpa_driver_wired_multi()
|
D | driver_macsec_qca.c | 230 dlp = (struct sockaddr_dl *) &ifr.ifr_addr; in macsec_qca_multi() 243 sap = (struct sockaddr *) &ifr.ifr_addr; in macsec_qca_multi()
|