/external/libpcap/ |
fad-gifc.c | 211 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); 261 memcpy(&ifrnetmask.ifr_addr, &ifrp->ifr_addr, 262 sizeof(ifrnetmask.ifr_addr)); 280 netmask = &ifrnetmask.ifr_addr; 291 memcpy(&ifrbroadaddr.ifr_addr, &ifrp->ifr_addr, 292 sizeof(ifrbroadaddr.ifr_addr)); 330 memcpy(&ifrdstaddr.ifr_addr, &ifrp->ifr_addr, [all...] |
/external/dnsmasq/src/ |
bpf.c | 76 if (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_ifru)) 77 len = ifr->ifr_addr.sa_len + offsetof(struct ifreq, ifr_ifru); 86 if (ifr->ifr_addr.sa_family == AF_INET && ipv4_callback) 90 addr = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; 93 netmask = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; 95 broadcast = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; 103 else if (ifr->ifr_addr.sa_family == AF_INET6 && ipv6_callback) 105 struct in6_addr *addr = &((struct sockaddr_in6 *)&ifr->ifr_addr)->sin6_addr; 113 (int)((struct sockaddr_in6 *)&ifr->ifr_addr)->sin6_scope_id, 183 ifr->ifr_addr.sa_family = AF_LINK [all...] |
/external/curl/lib/ |
if2ip.h | 71 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
if2ip.c | 232 req.ifr_addr.sa_family = AF_INET; 242 s = (struct sockaddr_in *)&req.ifr_addr;
|
/external/strace/ |
sock.c | 47 printxval(addrfams, ifr->ifr_addr.sa_family, "AF_???"); 49 if (ifr->ifr_addr.sa_family == AF_INET) { 51 (struct sockaddr_in *) &ifr->ifr_addr; 54 printstr(tcp, addr + offsetof(struct ifreq, ifr_addr.sa_data), 55 sizeof(ifr->ifr_addr.sa_data)); 72 tprints("ifr_addr="); 205 tprints("ifr_addr=");
|
/external/libpcap/Win32/Include/net/ |
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/ |
mDNSUNP.c | 283 if (sizeof(struct ifreq) > sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr)) 286 ptr += sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr); 288 // fprintf(stderr, "intf %p name=%s AF=%d\n", index, ifr->ifr_name, ifr->ifr_addr.sa_family); 290 if (ifr->ifr_addr.sa_family != family) 338 switch (ifr->ifr_addr.sa_family) { 340 sinptr = (struct sockaddr_in *) &ifr->ifr_addr; 368 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_addr; 419 sinptr6 = (struct sockaddr_in6 *) &ifr->ifr_addr; 439 memcpy(&ifr6.ifr_ifru.ifru_addr, &ifr->ifr_addr, sizeof(ifr6.ifr_ifru.ifru_addr));
|
/external/toybox/toys/other/ |
ifconfig.c | 132 ifre.ifr_addr.sa_family = AF_INET; 133 memset(&ifre.ifr_addr, 0, sizeof(ifre.ifr_addr)); 135 pp = (char *)&ifre.ifr_addr; 136 for (i = 0; i<sizeof(ifre.ifr_addr); i++) if (pp[i]) break; 138 if (i != sizeof(ifre.ifr_addr)) { 139 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr; 483 struct sockaddr_in *si = (struct sockaddr_in *)&ifre.ifr_addr;
|
/external/ipsec-tools/src/racoon/ |
grabmyaddr.c | 479 (sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) > sizeof(struct ifreq) \ 480 ? sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) : sizeof(struct ifreq)) 486 switch (ifr->ifr_addr.sa_family) { 491 if (!suitable_ifaddr(ifr->ifr_name, &ifr->ifr_addr)) { 495 saddrwop2str(&ifr->ifr_addr)); 504 p->addr = dupsaddr(&ifr->ifr_addr); 599 ifr6.ifr_addr = *(const struct sockaddr_in6 *)ifaddr;
|
/system/core/libnetutils/ |
ifc_utils.c | 244 init_sockaddr_in(&ifr.ifr_addr, addr); 465 init_sockaddr_in(&ifr.ifr_addr, mask); 480 init_sockaddr_in(&ifr.ifr_addr, mask); 496 *addr = ((struct sockaddr_in*) &ifr.ifr_addr)->sin_addr.s_addr; 511 *addr = ((struct sockaddr_in*) &ifr.ifr_addr)->sin_addr.s_addr; 520 ((struct sockaddr_in*) &ifr.ifr_addr)->sin_addr.s_addr); 640 init_sockaddr_in(&ifr.ifr_addr, myaddr);
|
/frameworks/native/cmds/ip-up-vpn/ |
ip-up-vpn.c | 102 if (!set_address(&ifr.ifr_addr, address) ||
|
/external/android-clat/ |
clatd_microbenchmark.c | 77 init_sockaddr_in((struct sockaddr_in *) &ifr.ifr_addr, "192.0.0.4"); 79 init_sockaddr_in((struct sockaddr_in *) &ifr.ifr_addr, "255.255.255.248");
|
/external/autotest/client/deps/lansim/src/py/ |
tuntap.py | 29 "ifr_addr": "HH12s", # struct sockaddr_in ifr_addr 155 pack_struct_ifreq(self.name, 'ifr_addr', socket.AF_INET, 0, '')) 156 ifr_name, ifr_family, ifr_type, ifr_addr = unpack_struct_ifreq( 157 ifs, 'ifr_addr') 160 # ifr_addr contains up to 12 bytes (see STRUCT_IFREQ_FMT). 161 return socket.inet_ntoa(ifr_addr[:4]) 171 pack_struct_ifreq(self.name, 'ifr_addr', 178 pack_struct_ifreq(self.name, 'ifr_addr',
|
/bionic/libc/kernel/uapi/linux/ |
if.h | 179 #define ifr_addr ifr_ifru.ifru_addr macro
|
/development/ndk/platforms/android-21/include/linux/ |
if.h | 181 #define ifr_addr ifr_ifru.ifru_addr macro
|
/development/ndk/platforms/android-3/include/linux/ |
if.h | 148 #define ifr_addr ifr_ifru.ifru_addr macro
|
/external/iproute2/include/linux/ |
if.h | 229 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/external/kernel-headers/original/uapi/linux/ |
if.h | 229 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/ |
if.h | 191 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/net/ |
if.h | 154 # define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/ |
if.h | 197 #define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/net/ |
if.h | 154 # define ifr_addr ifr_ifru.ifru_addr /* address */ macro
|
/prebuilts/ndk/current/platforms/android-12/arch-arm/usr/include/linux/ |
if.h | 148 #define ifr_addr ifr_ifru.ifru_addr macro
|
/prebuilts/ndk/current/platforms/android-12/arch-mips/usr/include/linux/ |
if.h | 148 #define ifr_addr ifr_ifru.ifru_addr macro
|
/prebuilts/ndk/current/platforms/android-12/arch-x86/usr/include/linux/ |
if.h | 148 #define ifr_addr ifr_ifru.ifru_addr macro
|