/external/libpcap/ |
D | fad-gifc.c | 227 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); in pcap_findalldevs_interfaces() 286 memcpy(&ifrnetmask.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces() 287 sizeof(ifrnetmask.ifr_addr)); in pcap_findalldevs_interfaces() 305 netmask = &ifrnetmask.ifr_addr; in pcap_findalldevs_interfaces() 316 memcpy(&ifrbroadaddr.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces() 317 sizeof(ifrbroadaddr.ifr_addr)); in pcap_findalldevs_interfaces() 355 memcpy(&ifrdstaddr.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces() 356 sizeof(ifrdstaddr.ifr_addr)); in pcap_findalldevs_interfaces() 420 &ifrp->ifr_addr, SA_LEN(&ifrp->ifr_addr), in pcap_findalldevs_interfaces()
|
/external/libcups/cups/ |
D | getifaddrs.c | 95 ifpsize = sizeof(ifp->ifr_name) + sockaddr_len(&(ifp->ifr_addr)); in _cups_getifaddrs() 133 if ((temp->ifa_addr = calloc(1, sockaddr_len(&(ifp->ifr_addr)))) != NULL) in _cups_getifaddrs() 134 memcpy(temp->ifa_addr, &(ifp->ifr_addr), sockaddr_len(&(ifp->ifr_addr))); in _cups_getifaddrs()
|
/external/toybox/toys/net/ |
D | ifconfig.c | 104 struct sockaddr_in *si = (void *)&ifre.ifr_addr; in display_ifconfig() 157 ifre.ifr_addr.sa_family = AF_INET; in display_ifconfig() 158 memset(&ifre.ifr_addr, 0, sizeof(ifre.ifr_addr)); in display_ifconfig() 160 pp = (char *)&ifre.ifr_addr; in display_ifconfig() 161 for (i = 0; i<sizeof(ifre.ifr_addr); i++) if (pp[i]) break; in display_ifconfig() 163 if (!(toys.optflags&FLAG_S) && i != sizeof(ifre.ifr_addr)) { in display_ifconfig() 164 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; in display_ifconfig() 515 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; in ifconfig_main()
|
/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 | 492 (sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) > sizeof(struct ifreq) \ in grab_myaddrs() 493 ? sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) : sizeof(struct ifreq)) in grab_myaddrs() 499 switch (ifr->ifr_addr.sa_family) { in grab_myaddrs() 504 if (!suitable_ifaddr(ifr->ifr_name, &ifr->ifr_addr)) { in grab_myaddrs() 508 saddrwop2str(&ifr->ifr_addr)); in grab_myaddrs() 517 p->addr = dupsaddr(&ifr->ifr_addr); in grab_myaddrs() 620 ifr6.ifr_addr = *(const struct sockaddr_in6 *)ifaddr;
|
/external/curl/lib/ |
D | if2ip.c | 207 req.ifr_addr.sa_family = AF_INET; in Curl_if2ip() 217 s = (struct sockaddr_in *)(void *)&req.ifr_addr; in Curl_if2ip()
|
D | if2ip.h | 70 #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/wpa_supplicant_8/src/drivers/ |
D | driver_wired_common.c | 108 dlp = (struct sockaddr_dl *) &ifr.ifr_addr; in driver_wired_multi() 122 sap = (struct sockaddr *) &ifr.ifr_addr; in driver_wired_multi()
|
/external/strace/ |
D | sock.c | 69 PRINT_FIELD_SOCKADDR("", *ifr, ifr_addr); in print_ifreq() 230 PRINT_FIELD_SOCKADDR(", ", *ifr, ifr_addr); in print_ifconf_ifreq()
|
/external/dnsmasq/src/ |
D | dhcp.c | 164 ifr.ifr_addr.sa_family = AF_INET; in dhcp_packet() 167 iface_addr = ((struct sockaddr_in*) &ifr.ifr_addr)->sin_addr; in dhcp_packet() 182 iface_addr = ((struct sockaddr_in*) &ifr.ifr_addr)->sin_addr; in dhcp_packet() 229 mess->hlen > sizeof(ifr.ifr_addr.sa_data) || mess->htype == 0) { in dhcp_packet()
|
/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/strace/tests-mx32/ |
D | ioctl_sock_gifconf.c | 85 (struct sockaddr_in *) &(ifr->ifr_addr); in print_ifconf()
|
/external/strace/tests-m32/ |
D | ioctl_sock_gifconf.c | 85 (struct sockaddr_in *) &(ifr->ifr_addr); in print_ifconf()
|
/external/strace/tests/ |
D | ioctl_sock_gifconf.c | 85 (struct sockaddr_in *) &(ifr->ifr_addr); in print_ifconf()
|
/external/iproute2/include/uapi/linux/ |
D | if.h | 256 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/external/wpa_supplicant_8/src/ap/ |
D | iapp.c | 420 paddr = (struct sockaddr_in *) &ifr.ifr_addr; in iapp_init() 435 paddr = (struct sockaddr_in *) &ifr.ifr_addr; in iapp_init()
|
/external/kernel-headers/original/uapi/linux/ |
D | if.h | 258 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/external/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 249 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) in get_node_id() 280 sdlp = (struct sockaddr_dl *) &ifrp->ifr_addr; in get_node_id()
|
/external/honggfuzz/examples/linux_kernel_ip/ |
D | tun.c | 121 struct sockaddr_in* sa = (struct sockaddr_in*)(&ifr.ifr_addr); in main()
|