Home
last modified time | relevance | path

Searched refs:ifr_addr (Results 1 – 25 of 37) sorted by relevance

12

/external/libpcap/
Dfad-gifc.c227 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/
Dgetifaddrs.c95 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/
Difconfig.c104 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/
DmDNSUNP.c283 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/
Dgrabmyaddr.c492 (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/
Dif2ip.c207 req.ifr_addr.sa_family = AF_INET; in Curl_if2ip()
217 s = (struct sockaddr_in *)(void *)&req.ifr_addr; in Curl_if2ip()
Dif2ip.h70 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
/external/autotest/client/deps/lansim/src/py/
Dtuntap.py156 ifr_name, ifr_family, ifr_type, ifr_addr = unpack_struct_ifreq(
161 return socket.inet_ntoa(ifr_addr[:4])
/external/ppp/pppd/
Dsys-linux.c1804 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 …]
Dsys-solaris.c1978 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/
Dclatd_microbenchmark.c77 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/
Ddriver_wired_common.c108 dlp = (struct sockaddr_dl *) &ifr.ifr_addr; in driver_wired_multi()
122 sap = (struct sockaddr *) &ifr.ifr_addr; in driver_wired_multi()
/external/strace/
Dsock.c69 PRINT_FIELD_SOCKADDR("", *ifr, ifr_addr); in print_ifreq()
230 PRINT_FIELD_SOCKADDR(", ", *ifr, ifr_addr); in print_ifconf_ifreq()
/external/dnsmasq/src/
Ddhcp.c164 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/
Darping.c59 req.ifr_addr.sa_family = AF_INET; in get_interface()
68 ip = (struct sockaddr_in*) &req.ifr_addr; in get_interface()
/external/iputils/
Drdisc.c1160 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()
Drarpd.c125 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/
Dioctl_sock_gifconf.c85 (struct sockaddr_in *) &(ifr->ifr_addr); in print_ifconf()
/external/strace/tests-m32/
Dioctl_sock_gifconf.c85 (struct sockaddr_in *) &(ifr->ifr_addr); in print_ifconf()
/external/strace/tests/
Dioctl_sock_gifconf.c85 (struct sockaddr_in *) &(ifr->ifr_addr); in print_ifconf()
/external/iproute2/include/uapi/linux/
Dif.h256 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
/external/wpa_supplicant_8/src/ap/
Diapp.c420 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/
Dif.h258 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c249 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/
Dtun.c121 struct sockaddr_in* sa = (struct sockaddr_in*)(&ifr.ifr_addr); in main()

12