Home
last modified time | relevance | path

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

12

/external/libpcap/
Dfad-gifc.c221 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); in pcap_findalldevs_interfaces()
280 memcpy(&ifrnetmask.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
281 sizeof(ifrnetmask.ifr_addr)); in pcap_findalldevs_interfaces()
299 netmask = &ifrnetmask.ifr_addr; in pcap_findalldevs_interfaces()
310 memcpy(&ifrbroadaddr.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
311 sizeof(ifrbroadaddr.ifr_addr)); in pcap_findalldevs_interfaces()
349 memcpy(&ifrdstaddr.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
350 sizeof(ifrdstaddr.ifr_addr)); in pcap_findalldevs_interfaces()
414 &ifrp->ifr_addr, SA_LEN(&ifrp->ifr_addr), in pcap_findalldevs_interfaces()
/external/libcups/cups/
Dgetifaddrs.c92 ifpsize = sizeof(ifp->ifr_name) + sockaddr_len(&(ifp->ifr_addr)); in _cups_getifaddrs()
130 if ((temp->ifa_addr = calloc(1, sockaddr_len(&(ifp->ifr_addr)))) != NULL) in _cups_getifaddrs()
131 memcpy(temp->ifa_addr, &(ifp->ifr_addr), sockaddr_len(&(ifp->ifr_addr))); in _cups_getifaddrs()
Dgetifaddrs-internal.h72 # define ifr_netmask ifr_addr
/external/toybox/toys/net/
Difconfig.c105 struct sockaddr_in *si = (void *)&ifre.ifr_addr; in display_ifconfig()
159 ifre.ifr_addr.sa_family = AF_INET; in display_ifconfig()
160 memset(&ifre.ifr_addr, 0, sizeof(ifre.ifr_addr)); in display_ifconfig()
162 pp = (char *)&ifre.ifr_addr; in display_ifconfig()
163 for (i = 0; i<sizeof(ifre.ifr_addr); i++) if (pp[i]) break; in display_ifconfig()
165 if (!(toys.optflags&FLAG_S) && i != sizeof(ifre.ifr_addr)) { in display_ifconfig()
166 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; in display_ifconfig()
520 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/cronet/net/third_party/quiche/src/quiche/quic/masque/
Dmasque_utils.cc90 memcpy(&ifr.ifr_addr, &addr, sizeof(addr)); in CreateTunInterface()
102 memcpy(&ifr.ifr_addr, &addr, sizeof(addr)); in CreateTunInterface()
/external/curl/lib/
Dif2ip.c215 req.ifr_addr.sa_family = AF_INET; in Curl_if2ip()
225 s = (struct sockaddr_in *)(void *)&req.ifr_addr; in Curl_if2ip()
Dif2ip.h80 #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/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/libwebsockets/lib/plat/unix/
Dunix-sockets.c501 i.ifr_addr.sa_family = AF_INET; in lws_plat_BINDTODEVICE()
531 memcpy(&ifr.ifr_addr, &is->sa46[LWSDH_SA46_IP], sizeof(struct sockaddr)); in lws_plat_ifconfig()
543 memcpy(&ifr.ifr_addr, &sin, sizeof(struct sockaddr)); in lws_plat_ifconfig()
/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/musl/include/net/
Dif.h98 #define ifr_addr ifr_ifru.ifru_addr macro
/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()
/external/strace/tests/
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-mx32/
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/libnl/include/linux-private/linux/
Dif.h256 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
/external/kernel-headers/original/uapi/linux/
Dif.h261 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro

12