/external/libpcap/ |
fad-gifc.c | 113 * We assume that's "sizeof(ifreq.ifr_name)" plus 255, under the assumption 164 * we have more than "sizeof(ifrp->ifr_name) + MAX_SA_LEN" 191 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) 211 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); 228 if (!(*ifrp->ifr_name)) 236 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0) 242 strncpy(ifrflags.ifr_name, ifrp->ifr_name, 243 sizeof(ifrflags.ifr_name)); 249 (int)sizeof(ifrflags.ifr_name), [all...] |
/external/android-clat/ |
mtu.c | 40 strncpy(if_mtu.ifr_name, ifname, IFNAMSIZ); 41 if_mtu.ifr_name[IFNAMSIZ - 1] = '\0';
|
tun.c | 55 strncpy(ifr.ifr_name, dev, IFNAMSIZ); 56 ifr.ifr_name[IFNAMSIZ-1] = '\0'; 63 strcpy(dev, ifr.ifr_name);
|
/external/compiler-rt/test/msan/ |
ioctl_custom.cc | 31 printf("%d %zu %s\n", i, strlen(ifreqs[i].ifr_name), ifreqs[i].ifr_name);
|
/external/dhcpcd-6.8.2/ |
if-linux-wext.c | 74 strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name));
|
/external/ppp/pppd/plugins/rp-pppoe/ |
if.c | 136 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 155 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 169 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
|
/external/autotest/client/deps/fakemodem/src/ |
fakenet.c | 43 strncpy (ifr.ifr_name, dev, IFNAMSIZ); 50 strncpy (dev, ifr.ifr_name, IFNAMSIZ);
|
/external/iproute2/ip/ |
tunnel.c | 74 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); 99 strncpy(ifr.ifr_name, name, IFNAMSIZ); 101 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); 112 fprintf(stderr, "add tunnel \"%s\" failed: %s\n", ifr.ifr_name, 125 strncpy(ifr.ifr_name, name, IFNAMSIZ); 127 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); 140 ifr.ifr_name, strerror(errno)); 152 strncpy(ifr.ifr_name, name, IFNAMSIZ);
|
/system/connectivity/dhcp_client/ |
device_info.cc | 62 memcpy(ifr.ifr_name, interface_name.c_str(), if_name_len); 63 ifr.ifr_name[if_name_len] = 0;
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
dhdu_linux.c | 104 dhd_nli.ifidx = if_nametoindex(ifr->ifr_name); 106 fprintf(stderr, "invalid device %s\n", ifr->ifr_name); 208 strncpy(ifr.ifr_name, name, IFNAMSIZ); 315 ifr->ifr_name[0] = '\0'; 328 strncpy(ifr->ifr_name, name, IFNAMSIZ); 335 ifr->ifr_name[0] = '\0'; 430 if (!ifr->ifr_name || wl_check((void *)ifr)) { 460 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); 506 if (!ifr.ifr_name[0]) 511 if (!ifr.ifr_name[0] || wl_check((void*)&ifr)) [all...] |
/bionic/libc/bionic/ |
net_if.cpp | 58 return (rc == -1) ? nullptr : strncpy(ifname, ifr.ifr_name, IFNAMSIZ); 67 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 68 ifr.ifr_name[IFNAMSIZ - 1] = 0;
|
/external/curl/lib/ |
if2ip.h | 70 #define ifr_name ifr_ifrn.ifrn_name /* interface name */ macro
|
/external/wpa_supplicant_8/src/ap/ |
vlan_ifconfig.c | 31 os_strlcpy(ifr.ifr_name, if_name, IFNAMSIZ);
|
/external/autotest/client/profilers/powertop/src/ |
ethernet.c | 65 strcpy(ifr.ifr_name, "eth0"); 106 strcpy(ifr.ifr_name, "eth0");
|
/external/ppp/pppd/include/net/ |
if_ppp.h | 102 char ifr_name[IFNAMSIZ]; member in struct:ifpppstatsreq 107 char ifr_name[IFNAMSIZ]; member in struct:ifpppcstatsreq
|
/external/valgrind/memcheck/tests/solaris/ |
ioctl.c | 37 if (strcmp(ifc.ifc_req[0].ifr_name, "") != 0) x = -5; else x = -6; 39 if (strcmp(ifc.ifc_req[n_ifs].ifr_name, "") != 0) x = -7; else x = -8;
|
scalar_ioctl.c | 246 ifr.ifr_name[0] = x0 + 'l'; 247 ifr.ifr_name[1] = x0 + 'o'; 248 ifr.ifr_name[2] = x0 + '0'; 249 ifr.ifr_name[3] = x0 + '\0'; 267 ifr.ifr_name[0] = x0 + 'l'; 268 ifr.ifr_name[1] = x0 + 'o'; 269 ifr.ifr_name[2] = x0 + '0'; 270 ifr.ifr_name[3] = x0 + '\0';
|
/frameworks/base/services/core/jni/ |
com_android_server_connectivity_Vpn.cpp | 74 ALOGE("Cannot activate %s: %s", ifr4.ifr_name, strerror(errno)); 81 ALOGE("Cannot set MTU on %s: %s", ifr4.ifr_name, strerror(errno)); 99 strncpy(name, ifr4.ifr_name, IFNAMSIZ); 106 strncpy(ifr4.ifr_name, name, IFNAMSIZ); 123 strncpy(ifr4.ifr_name, name, IFNAMSIZ); 161 sprintf(ifr4.ifr_name, "%s:%d", name, count); 194 strncpy(ifr4.ifr_name, name, IFNAMSIZ); 207 strncpy(ifr4.ifr_name, name, IFNAMSIZ);
|
/external/autotest/client/deps/lansim/src/py/ |
tuntap.py | 131 ifr_name, ifr_mtu = unpack_struct_ifreq(ifs, 'ifr_mtu') 138 ifr_name, ifr_flags = unpack_struct_ifreq(ifs, 'ifr_flags') 145 ifr_name, ifr_flags = unpack_struct_ifreq(ifs, 'ifr_flags') 156 ifr_name, ifr_family, ifr_type, ifr_addr = unpack_struct_ifreq( 189 ifr_name, ifr_family, ifr_hwaddr = unpack_struct_ifreq( 205 ifr_name, ifr_family, ifr_hwaddr = unpack_struct_ifreq(
|
/external/wpa_supplicant_8/src/drivers/ |
linux_ioctl.c | 27 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); 67 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); 85 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); 108 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); 170 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); 192 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ);
|
driver_openbsd.c | 36 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name));
|
/external/webrtc/webrtc/base/ |
macifaddrs_converter.cc | 145 char ifr_name[IFNAMSIZ]; member in struct:in6_ifreq 216 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name) - 1);
|
/external/ppp/pppd/ |
sys-linux.c | 1197 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); 1213 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); [all...] |
/external/toybox/toys/pending/ |
brctl.c | 52 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ); 65 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ); 151 xstrncpy(ifr.ifr_name, argv[0], IFNAMSIZ); 169 xstrncpy(ifr.ifr_name, argv[0], IFNAMSIZ); 197 xstrncpy(ifr.ifr_name, br, IFNAMSIZ); 273 xstrncpy(ifr.ifr_name, br, IFNAMSIZ);
|
/external/mdnsresponder/mDNSPosix/ |
mDNSUNP.c | 173 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); 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); 294 if ( (cptr = strchr(ifr->ifr_name, ':')) != NULL) 296 if (strncmp(lastname, ifr->ifr_name, IFNAMSIZ) == 0) { 301 memcpy(lastname, ifr->ifr_name, IFNAMSIZ); 324 ifi->ifi_index = if_nametoindex(ifr->ifr_name); 334 memcpy(ifi->ifi_name, ifr->ifr_name, IFI_NAME); 438 memcpy(&ifr6.ifr_name, &ifr->ifr_name, sizeof(ifr6.ifr_name )) [all...] |