/external/iproute2/ip/ |
tunnel.c | 72 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); 91 strncpy(ifr.ifr_name, name, IFNAMSIZ); 93 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); 98 fprintf(stderr, "add tunnel %s failed: %s\n", ifr.ifr_name, 111 strncpy(ifr.ifr_name, name, IFNAMSIZ); 113 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); 120 ifr.ifr_name, strerror(errno)); 132 strncpy(ifr.ifr_name, name, IFNAMSIZ);
|
ipmaddr.c | 293 if (ifr.ifr_name[0]) 295 strncpy(ifr.ifr_name, *argv, IFNAMSIZ); 312 if (ifr.ifr_name[0] == 0) {
|
iptuntap.c | 173 strncpy(ifr->ifr_name, *argv, IFNAMSIZ-1); 179 if (ifr->ifr_name[0]) 181 strncpy(ifr->ifr_name, *argv, IFNAMSIZ);
|
/external/android-clat/ |
mtu.c | 40 strncpy(if_mtu.ifr_name, ifname, IFNAMSIZ); 41 if_mtu.ifr_name[IFNAMSIZ - 1] = '\0';
|
/external/libpcap/ |
fad-gifc.c | 119 * We assume that's "sizeof(ifreq.ifr_name)" plus 255, under the assumption 211 strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name)); 217 (int)sizeof(ifrflags.ifr_name), 218 ifrflags.ifr_name, 299 * we have more than "sizeof(ifrp->ifr_name) + MAX_SA_LEN" 326 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) 346 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); 363 if (!(*ifrp->ifr_name)) 371 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0 [all...] |
/bionic/libc/bionic/ |
if_nametoindex.c | 47 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); 48 ifr.ifr_name[IFNAMSIZ - 1] = 0;
|
if_indextoname.c | 54 ret = strncpy (ifname, ifr.ifr_name, IFNAMSIZ);
|
/external/compiler-rt/lib/msan/lit_tests/ |
ioctl_custom.cc | 31 printf("%d %zu %s\n", i, strlen(ifreqs[i].ifr_name), ifreqs[i].ifr_name);
|
/external/strace/ |
sock.c | 163 tprintf(", {ifr_index=%d, ifr_name=???}", ifr.ifr_ifindex); 165 tprintf(", {ifr_name=\"%s\", ???}", ifr.ifr_name); 167 tprintf(", {ifr_index=%d, ifr_name=\"%s\"}", 168 ifr.ifr_ifindex, ifr.ifr_name); 170 tprintf(", {ifr_name=\"%s\", ", ifr.ifr_name); 272 ifra[i].ifr_name);
|
/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));
|
driver_wired.c | 222 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); 248 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); 422 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); 446 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); 502 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ);
|
/system/core/toolbox/ |
ifconfig.c | 75 strncpy(ifr.ifr_name, argv[0], IFNAMSIZ); 76 ifr.ifr_name[IFNAMSIZ-1] = 0; 85 perror(ifr.ifr_name); 91 perror(ifr.ifr_name); 97 perror(ifr.ifr_name); 112 printf("%s: ip %s mask %s flags [", ifr.ifr_name,
|
/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...] |
/external/dhcpcd/ |
net.c | 85 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 207 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 227 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 278 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); 281 if ((p = strchr(ifr.ifr_name, ':'))) 312 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)) [all...] |
if-linux-wireless.c | 74 strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name));
|
/external/wpa_supplicant_8/src/l2_packet/ |
l2_packet_linux.c | 118 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); 183 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name));
|
/external/openssh/openbsd-compat/ |
port-tun.c | 87 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), name, tun); 99 debug("%s: %s mode %d fd %d", __func__, ifr.ifr_name, mode, fd); 170 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s%d", tunbase, tun);
|
/frameworks/base/services/jni/ |
com_android_server_connectivity_Vpn.cpp | 73 ALOGE("Cannot activate %s: %s", ifr4.ifr_name, strerror(errno)); 80 ALOGE("Cannot set MTU on %s: %s", ifr4.ifr_name, strerror(errno)); 98 strncpy(name, ifr4.ifr_name, IFNAMSIZ); 105 strncpy(ifr4.ifr_name, name, IFNAMSIZ); 122 strncpy(ifr4.ifr_name, name, IFNAMSIZ); 160 sprintf(ifr4.ifr_name, "%s:%d", name, count); 283 strncpy(ifr4.ifr_name, name, IFNAMSIZ); 296 strncpy(ifr4.ifr_name, name, IFNAMSIZ);
|
/external/ppp/pppd/plugins/rp-pppoe/ |
if.c | 162 ifreq.ifr_name[0] = '\0'; 165 i += sizeof(ifr->ifr_name) + 173 !strncmp(ifname, ifr->ifr_name, sizeof(ifr->ifr_name))) { 324 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 343 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 388 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); [all...] |
/hardware/broadcom/wlan/bcmdhd/bcmdhd_net_iface/ |
bcmdhd_net_iface.c | 64 strncpy(ifr.ifr_name, argv[2], IFNAMSIZ);
|
/external/chromium_org/chrome/browser/extensions/api/music_manager_private/ |
device_id_linux.cc | 106 strncpy(ifinfo.ifr_name, ifaddr->ifa_name, sizeof(ifinfo.ifr_name) - 1); 120 if (!IsValidPrefix(ifinfo.ifr_name, prefixes, prefixes_count))
|
/external/mdnsresponder/mDNSPosix/ |
mDNSUNP.c | 173 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); 276 if (sizeof(struct ifreq) > sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr)) 279 ptr += sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr); 281 // fprintf(stderr, "intf %p name=%s AF=%d\n", index, ifr->ifr_name, ifr->ifr_addr.sa_family); 287 if ( (cptr = strchr(ifr->ifr_name, ':')) != NULL) 289 if (strncmp(lastname, ifr->ifr_name, IFNAMSIZ) == 0) { 294 memcpy(lastname, ifr->ifr_name, IFNAMSIZ); 317 ifi->ifi_index = if_nametoindex(ifr->ifr_name); 327 memcpy(ifi->ifi_name, ifr->ifr_name, IFI_NAME); 431 memcpy(&ifr6.ifr_name, &ifr->ifr_name, sizeof(ifr6.ifr_name )) [all...] |
/external/ppp/pppd/ |
sys-solaris.c | 433 if (strchr(pifreq->ifr_name, ':') != NULL) 437 strncpy(ifr.ifr_name, pifreq->ifr_name, sizeof(ifr.ifr_name)); 457 strncpy(first_ether_name, ifr.ifr_name, sizeof(first_ether_name)); 702 sprintf(ifr.ifr_name, "%s", ifname); 758 slprintf(ifr.ifr_name, sizeof(ifr.ifr_name), PPP_DRV_NAME "%d", ifunit); 761 fatal("Can't set interface name %s: %m", ifr.ifr_name); 798 sprintf(ifr.ifr_name, "%s", ifname) [all...] |
/external/dnsmasq/src/ |
bpf.c | 97 (int)if_nametoindex(ifr->ifr_name), 114 (int)if_nametoindex(ifr->ifr_name), 179 mess->htype, ifr->ifr_name);
|