Home
last modified time | relevance | path

Searched refs:ifr_name (Results 1 – 25 of 83) sorted by relevance

1234

/external/libpcap/
Dfad-gifc.c211 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 …]
Dpcap-snit.c334 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()
Dpcap-linux.c1614 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()
/external/iproute2/ip/
Dtunnel.c72 strncpy(ifr.ifr_name, dev, IFNAMSIZ); in tnl_ioctl_get_ifindex()
89 strncpy(ifr.ifr_name, dev, IFNAMSIZ); in tnl_ioctl_get_iftype()
115 return ifr.ifr_name; in tnl_ioctl_get_ifname()
124 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl()
141 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_add_ioctl()
143 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl()
160 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_del_ioctl()
162 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl()
178 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_gen_ioctl()
Diptuntap.c173 strncpy(ifr->ifr_name, *argv, IFNAMSIZ-1); in parse_args()
179 if (ifr->ifr_name[0]) in parse_args()
181 strncpy(ifr->ifr_name, *argv, IFNAMSIZ); in parse_args()
/external/dhcpcd/
Dnet.c191 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in init_interface()
211 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in init_interface()
260 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in carrier_status()
263 if ((p = strchr(ifr.ifr_name, ':'))) in carrier_status()
294 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in up_interface()
297 if ((p = strchr(ifr.ifr_name, ':'))) in up_interface()
556 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in do_mtu()
595 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in open_udp_socket()
597 p = strchr(ifr.ifr_name, ':'); in open_udp_socket()
Dif-linux-wireless.c73 strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name)); in getifssid()
/external/wpa_supplicant_8/src/drivers/
Dlinux_ioctl.c32 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_iface_flags()
65 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_get_ifhwaddr()
88 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_ifhwaddr()
150 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); in linux_br_add_if()
172 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); in linux_br_del_if()
Ddriver_wired.c227 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
253 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
427 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_get_ifflags()
451 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_set_ifflags()
479 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_multi()
Ddriver_wext.c61 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param()
91 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid()
116 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid()
145 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_ssid()
187 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_ssid()
229 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_freq()
1026 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_scan()
1081 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_giwscan()
1542 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_range()
1618 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_psk()
[all …]
/external/ppp/pppd/
Dsys-linux.c1163 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 …]
Dsys-solaris.c433 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/
Dif.c162 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()
Dplugin.c202 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/
Dsock.c154 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/
Dl2_packet_linux.c118 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()
Ddriver_wired.c69 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()
Ddriver_wext.c160 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param()
190 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid()
215 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid()
244 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_ssid()
286 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_ssid()
328 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_freq()
905 os_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wext_get_ifflags_ifname()
933 os_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wext_set_ifflags_ifname()
1143 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ);
1267 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ);
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/l2_packet/
Dl2_packet_linux.c119 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); in l2_packet_init()
180 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); in l2_packet_get_ip_addr()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_linux.c124 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); in l2_packet_init()
189 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); in l2_packet_get_ip_addr()
/external/ppp/pppd/include/net/
Dif_ppp.h102 char ifr_name[IFNAMSIZ]; member
107 char ifr_name[IFNAMSIZ]; member
/external/wpa_supplicant_8/src/ap/
Dvlan_init.c55 os_strlcpy(ifr.ifr_name, if_name, IFNAMSIZ); in ifconfig_helper()
137 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name)); in br_delif()
188 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name)); in br_addif()
277 os_strlcpy(ifr.ifr_name, br_name, IFNAMSIZ); in br_addbr()
316 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name)); in br_getnumports()
/external/bluetooth/bluez/network/
Dcommon.c198 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in bnep_if_up()
223 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in bnep_if_down()
254 strncpy(ifr.ifr_name, bridge, IFNAMSIZ - 1); in bnep_add_to_bridge()
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Ddriver_wext.c112 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param()
142 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid()
167 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid()
196 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_ssid()
238 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_ssid()
280 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_freq()
869 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wext_get_ifflags_ifname()
897 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wext_set_ifflags_ifname()
1153 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ);
1253 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ);
[all …]
Ddriver_wired.c68 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_get_ifflags()
92 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_set_ifflags()
116 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_multi()

1234