/external/libpcap/ |
D | fad-gifc.c | 207 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces() 227 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); in pcap_findalldevs_interfaces() 244 if (!(*ifrp->ifr_name)) in pcap_findalldevs_interfaces() 252 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0) in pcap_findalldevs_interfaces() 258 if (!(*check_usable)(ifrp->ifr_name)) { in pcap_findalldevs_interfaces() 268 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces() 269 sizeof(ifrflags.ifr_name)); in pcap_findalldevs_interfaces() 275 (int)sizeof(ifrflags.ifr_name), in pcap_findalldevs_interfaces() 276 ifrflags.ifr_name); in pcap_findalldevs_interfaces() 284 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces() [all …]
|
D | pcap-bpf.c | 623 (void)strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in bpf_open_and_bind() 802 strlcpy(ifr.ifr_name, "wlt", sizeof(ifr.ifr_name)); in pcap_can_set_rfmon_bpf() 803 strlcat(ifr.ifr_name, p->opt.device + 2, sizeof(ifr.ifr_name)); in pcap_can_set_rfmon_bpf() 830 (void)strncpy(ifr.ifr_name, p->opt.device, sizeof(ifr.ifr_name)); in pcap_can_set_rfmon_bpf() 1443 (void)strncpy(ifr.ifr_name, in pcap_cleanup_bpf() 1445 sizeof(ifr.ifr_name)); in pcap_cleanup_bpf() 1472 strlcpy(ifr.ifr_name, pb->device, in pcap_cleanup_bpf() 1473 sizeof(ifr.ifr_name)); in pcap_cleanup_bpf() 1535 strlcpy(ifr.ifr_name, "en", in check_setif_failure() 1536 sizeof(ifr.ifr_name)); in check_setif_failure() [all …]
|
D | pcap-snit.c | 370 strncpy(ifr.ifr_name, p->opt.device, sizeof(ifr.ifr_name)); in pcap_activate_snit() 371 ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = '\0'; in pcap_activate_snit() 382 errno, "NIOCBIND: %s", ifr.ifr_name); in pcap_activate_snit()
|
/external/iproute2/ip/ |
D | tunnel.c | 77 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl() 102 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_add_ioctl() 104 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl() 115 fprintf(stderr, "add tunnel \"%s\" failed: %s\n", ifr.ifr_name, in tnl_add_ioctl() 128 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_del_ioctl() 130 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl() 143 ifr.ifr_name, strerror(errno)); in tnl_del_ioctl() 155 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_gen_ioctl()
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | if.c | 136 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 155 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 169 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
|
D | pppoe-discovery.c | 138 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 160 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 175 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
|
D | plugin.c | 156 strncpy(ifr.ifr_name, conn->ifName, sizeof(ifr.ifr_name)); in PPPOEConnectDevice() 329 strncpy(ifr.ifr_name, cmd, sizeof(ifr.ifr_name)); in PPPoEDevnameHook()
|
/external/autotest/client/deps/lansim/src/py/ |
D | 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/ |
D | linux_ioctl.c | 28 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_iface_flags() 68 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_iface_up() 86 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_get_ifhwaddr() 109 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_ifhwaddr() 160 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); in linux_br_add_if() 185 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); in linux_br_del_if()
|
/external/libcups/cups/ |
D | getifaddrs.c | 95 ifpsize = sizeof(ifp->ifr_name) + sockaddr_len(&(ifp->ifr_addr)); in _cups_getifaddrs() 101 memcpy(request.ifr_name, ifp->ifr_name, sizeof(ifp->ifr_name)); in _cups_getifaddrs() 131 temp->ifa_name = strdup(ifp->ifr_name); in _cups_getifaddrs()
|
/external/ppp/pppd/ |
D | sys-linux.c | 1197 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); in netif_set_mtu() 1213 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); in netif_get_mtu() 1806 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); in get_ether_addr() 1839 strlcpy(name, bestifreq.ifr_name, namelen); in get_ether_addr() 1852 error("SIOCGIFHWADDR(%s): %m", bestifreq.ifr_name); in get_ether_addr() 1877 strlcpy(ifreq.ifr_name, name, sizeof(ifreq.ifr_name)); in get_if_hwaddr() 1947 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); in GetMask() 2087 strlcpy (ifr.ifr_name, "ppp0", sizeof (ifr.ifr_name)); in ppp_available() 2096 strlcpy (ifr.ifr_name, "ppp0", sizeof (ifr.ifr_name)); in ppp_available() 2340 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); in setifstate() [all …]
|
D | sys-solaris.c | 433 if (strchr(pifreq->ifr_name, ':') != NULL) in get_first_ethernet() 437 strncpy(ifr.ifr_name, pifreq->ifr_name, sizeof(ifr.ifr_name)); in get_first_ethernet() 457 strncpy(first_ether_name, ifr.ifr_name, sizeof(first_ether_name)); in get_first_ethernet() 702 sprintf(ifr.ifr_name, "%s", ifname); in sys_init() 758 slprintf(ifr.ifr_name, sizeof(ifr.ifr_name), PPP_DRV_NAME "%d", ifunit); in sys_init() 761 fatal("Can't set interface name %s: %m", ifr.ifr_name); in sys_init() 798 sprintf(ifr.ifr_name, "%s", ifname); in sys_cleanup() 1515 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 1518 error("Couldn't set IP MTU (%s): %m", ifr.ifr_name); 1531 error("Couldn't set IPv6 MTU (%s): %m", ifr.ifr_name); [all …]
|
/external/ltp/testcases/kernel/containers/share/ |
D | ns_ifmove.c | 55 strncpy(ifr.ifr_name, intf_name, sizeof(ifr.ifr_name) - 1); in get_intf_index_from_name() 56 ifr.ifr_name[sizeof(ifr.ifr_name)-1] = '\0'; in get_intf_index_from_name()
|
/external/android-clat/ |
D | tun.c | 56 strncpy(ifr.ifr_name, dev, IFNAMSIZ); in tun_alloc() 57 ifr.ifr_name[IFNAMSIZ - 1] = '\0'; in tun_alloc() 64 strlcpy(dev, ifr.ifr_name, len); in tun_alloc()
|
D | mtu.c | 41 strncpy(if_mtu.ifr_name, ifname, IFNAMSIZ); in getifmtu() 42 if_mtu.ifr_name[IFNAMSIZ - 1] = '\0'; in getifmtu()
|
/external/openssh/openbsd-compat/ |
D | port-tun.c | 88 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), name, tun); in sys_tun_open() 100 debug("%s: %s mode %d fd %d", __func__, ifr.ifr_name, mode, fd); in sys_tun_open() 171 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s%d", tunbase, tun); in sys_tun_open()
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 173 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in get_ifi_info_linuxv6() 283 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() 294 if ( (cptr = strchr(ifr->ifr_name, ':')) != NULL) in get_ifi_info() 296 if (strncmp(lastname, ifr->ifr_name, IFNAMSIZ) == 0) { in get_ifi_info() 301 memcpy(lastname, ifr->ifr_name, IFNAMSIZ); in get_ifi_info() 324 ifi->ifi_index = if_nametoindex(ifr->ifr_name); in get_ifi_info() 334 memcpy(ifi->ifi_name, ifr->ifr_name, IFI_NAME); in get_ifi_info() 438 memcpy(&ifr6.ifr_name, &ifr->ifr_name, sizeof(ifr6.ifr_name )); in get_ifi_info()
|
/external/toybox/toys/pending/ |
D | brctl.c | 52 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ); 65 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ); in get_br_info() 151 xstrncpy(ifr.ifr_name, argv[0], IFNAMSIZ); in br_addif() 169 xstrncpy(ifr.ifr_name, argv[0], IFNAMSIZ); in br_delif() 197 xstrncpy(ifr.ifr_name, br, IFNAMSIZ); in set_time() 273 xstrncpy(ifr.ifr_name, br, IFNAMSIZ); in set_cost_prio()
|
/external/compiler-rt/test/msan/ |
D | ioctl_custom.cc | 31 printf("%d %zu %s\n", i, strlen(ifreqs[i].ifr_name), ifreqs[i].ifr_name); in main()
|
/external/toybox/toys/net/ |
D | tunctl.c | 46 strncpy(ifr->ifr_name, *toys.optargs, sizeof(ifr->ifr_name));
|
/external/autotest/client/deps/fakemodem/src/ |
D | fakenet.c | 43 strncpy (ifr.ifr_name, dev, IFNAMSIZ); in tun_alloc() 50 strncpy (dev, ifr.ifr_name, IFNAMSIZ); in tun_alloc()
|
/external/webrtc/webrtc/base/ |
D | macifaddrs_converter.cc | 145 char ifr_name[IFNAMSIZ]; member 216 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name) - 1); in GetIPAttributes()
|
/external/strace/ |
D | sock.c | 229 print_ifname(ifr->ifr_name); in print_ifconf_ifreq() 396 print_ifname(ifr.ifr_name); in MPERS_PRINTER_DECL() 429 print_ifname(ifr.ifr_name); in MPERS_PRINTER_DECL() 446 print_ifname(ifr.ifr_name); in MPERS_PRINTER_DECL()
|
/external/wpa_supplicant_8/src/ap/ |
D | vlan_full.c | 163 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name)); in br_delif() 223 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name)); in br_addif() 326 os_strlcpy(ifr.ifr_name, br_name, IFNAMSIZ); in br_addbr() 365 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name)); in br_getnumports()
|
/external/ppp/pppd/include/net/ |
D | if_ppp.h | 102 char ifr_name[IFNAMSIZ]; member 107 char ifr_name[IFNAMSIZ]; member
|