/external/libpcap/ |
D | fad-gifc.c | 211 strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name)); in scan_proc_net_dev() 217 (int)sizeof(ifrflags.ifr_name), in scan_proc_net_dev() 218 ifrflags.ifr_name, in scan_proc_net_dev() 326 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs() 346 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); in pcap_findalldevs() 363 if (!(*ifrp->ifr_name)) in pcap_findalldevs() 371 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0) in pcap_findalldevs() 378 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs() 379 sizeof(ifrflags.ifr_name)); in pcap_findalldevs() 385 (int)sizeof(ifrflags.ifr_name), in pcap_findalldevs() [all …]
|
D | pcap-snit.c | 334 strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name)); in pcap_open_live() 335 ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = '\0'; in pcap_open_live() 341 ifr.ifr_name, pcap_strerror(errno)); in pcap_open_live()
|
D | pcap-linux.c | 1614 strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name)); in iface_get_id() 1716 strncpy(ifr.ifr_name, handle->md.device, sizeof(ifr.ifr_name)); in pcap_close_linux() 1832 strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name)); in live_open_old() 1949 strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name)); in iface_get_mtu() 1969 strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name)); in iface_get_arptype()
|
D | pcap-snoop.c | 318 (void)strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name)); in pcap_open_live()
|
/external/dhcpcd/ |
D | net.c | 240 if (strcmp(ifname, ifr->ifr_name) != 0) in do_interface() 300 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in up_interface() 303 if ((p = strchr(ifr.ifr_name, ':'))) in up_interface() 335 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in carrier_status() 338 if ((p = strchr(ifr.ifr_name, ':'))) in carrier_status() 351 strncpy(ifmr.ifm_name, ifr.ifr_name, sizeof(ifmr.ifm_name)); in carrier_status() 375 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in read_interface() 381 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in read_interface() 402 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in read_interface() 413 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in read_interface() [all …]
|
D | bpf.c | 89 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in open_socket()
|
/external/ppp/pppd/ |
D | sys-linux.c | 1163 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); in netif_set_mtu() 1179 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); in netif_get_mtu() 1774 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); in get_ether_addr() 1807 strlcpy(name, bestifreq.ifr_name, namelen); in get_ether_addr() 1820 error("SIOCGIFHWADDR(%s): %m", bestifreq.ifr_name); in get_ether_addr() 1845 strlcpy(ifreq.ifr_name, name, sizeof(ifreq.ifr_name)); in get_if_hwaddr() 1915 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); in GetMask() 2065 strlcpy (ifr.ifr_name, "ppp0", sizeof (ifr.ifr_name)); in ppp_available() 2074 strlcpy (ifr.ifr_name, "ppp0", sizeof (ifr.ifr_name)); in ppp_available() 2247 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); in sifup() [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() 1512 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); 1515 error("Couldn't set IP MTU (%s): %m", ifr.ifr_name); 1528 error("Couldn't set IPv6 MTU (%s): %m", ifr.ifr_name); [all …]
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | if.c | 162 ifreq.ifr_name[0] = '\0'; in getHWaddr() 165 i += sizeof(ifr->ifr_name) + in getHWaddr() 173 !strncmp(ifname, ifr->ifr_name, sizeof(ifr->ifr_name))) { in getHWaddr() 324 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 343 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 388 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 456 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 478 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 494 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
|
D | plugin.c | 202 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in PPPOESendConfig() 301 strncpy(ifr.ifr_name, cmd, sizeof(ifr.ifr_name)); in PPPoEDevnameHook()
|
/external/strace/ |
D | sock.c | 154 tprintf(", {ifr_name=\"%s\", ???}", ifr.ifr_name); 157 ifr.ifr_ifindex, ifr.ifr_name); 159 tprintf(", {ifr_name=\"%s\", ", ifr.ifr_name); 229 ifra[i].ifr_name);
|
/external/wpa_supplicant/ |
D | l2_packet_linux.c | 118 os_strncpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); in l2_packet_init() 178 os_strncpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); in l2_packet_get_ip_addr()
|
D | driver_wext.c | 159 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param() 189 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid() 214 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid() 243 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_ssid() 285 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_ssid() 327 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_freq() 904 os_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wext_get_ifflags_ifname() 932 os_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wext_set_ifflags_ifname() 1137 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_scan() 1254 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_scan_results() [all …]
|
D | driver_wired.c | 69 os_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_get_ifflags() 93 os_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_set_ifflags() 117 os_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_multi()
|
D | driver_madwifi.c | 56 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in set80211priv() 151 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in set80211param() 170 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_madwifi_set_wpa_ie() 423 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_madwifi_scan()
|
D | driver_broadcom.c | 95 os_strncpy(ifr.ifr_name, drv->ifname, IFNAMSIZ); in broadcom_ioctl() 99 perror(ifr.ifr_name); in broadcom_ioctl() 305 os_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_broadcom_init() 307 perror(ifr.ifr_name); in wpa_driver_broadcom_init()
|
D | driver_hostap.c | 44 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in hostapd_ioctl() 90 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in prism2param() 254 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_hostap_reset()
|
D | driver_bsd.c | 122 os_strncpy(ifr.ifr_name, drv->ifname, sizeof (ifr.ifr_name)); in getifflags() 137 os_strncpy(ifr.ifr_name, drv->ifname, sizeof (ifr.ifr_name)); in setifflags()
|
D | driver_atmel.c | 109 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in atmel_ioctl() 131 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in atmel2param()
|
/external/ppp/pppd/include/net/ |
D | if_ppp.h | 102 char ifr_name[IFNAMSIZ]; member 107 char ifr_name[IFNAMSIZ]; member
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 256 memcpy(i->ifa_name, ifr.ifr_name, 16); in getifaddrs() 479 (sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) > sizeof(struct ifreq) \ in grab_myaddrs() 480 ? sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) : sizeof(struct ifreq)) in grab_myaddrs() 491 if (!suitable_ifaddr(ifr->ifr_name, &ifr->ifr_addr)) { in grab_myaddrs() 494 ifr->ifr_name, in grab_myaddrs() 528 addr1, ifr->ifr_name); in grab_myaddrs() 597 strncpy(ifr6.ifr_name, ifname, strlen(ifname));
|
/external/ppp/pppd/plugins/pppoatm/ |
D | pppoatm.c | 184 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in send_config_pppoa()
|
/external/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 201 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) in get_node_id() 220 strncpy(ifr.ifr_name, ifrp->ifr_name, IFNAMSIZ); in get_node_id()
|
/external/bluetooth/bluez/network/ |
D | bridge.c | 123 strncpy(ifr.ifr_name, name, IFNAMSIZ - 1); in bridge_add_interface()
|
D | common.c | 265 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in bnep_if_up() 355 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in bnep_if_down()
|