Home
last modified time | relevance | path

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

1234

/external/libpcap/
Dfad-gifc.c191 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces()
211 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); in pcap_findalldevs_interfaces()
228 if (!(*ifrp->ifr_name)) in pcap_findalldevs_interfaces()
236 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0) in pcap_findalldevs_interfaces()
242 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
243 sizeof(ifrflags.ifr_name)); in pcap_findalldevs_interfaces()
249 (int)sizeof(ifrflags.ifr_name), in pcap_findalldevs_interfaces()
250 ifrflags.ifr_name, in pcap_findalldevs_interfaces()
259 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
260 sizeof(ifrnetmask.ifr_name)); in pcap_findalldevs_interfaces()
[all …]
Dpcap-snit.c351 strncpy(ifr.ifr_name, p->opt.source, sizeof(ifr.ifr_name)); in pcap_activate_snit()
352 ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = '\0'; in pcap_activate_snit()
358 ifr.ifr_name, pcap_strerror(errno)); in pcap_activate_snit()
Dpcap-bpf.c694 strlcpy(ifr.ifr_name, "wlt", sizeof(ifr.ifr_name)); in pcap_can_set_rfmon_bpf()
695 strlcat(ifr.ifr_name, p->opt.source + 2, sizeof(ifr.ifr_name)); in pcap_can_set_rfmon_bpf()
722 (void)strncpy(ifr.ifr_name, p->opt.source, sizeof(ifr.ifr_name)); in pcap_can_set_rfmon_bpf()
1317 (void)strncpy(ifr.ifr_name, in pcap_cleanup_bpf()
1319 sizeof(ifr.ifr_name)); in pcap_cleanup_bpf()
1391 strlcpy(ifr.ifr_name, "en", in check_setif_failure()
1392 sizeof(ifr.ifr_name)); in check_setif_failure()
1393 strlcat(ifr.ifr_name, p->opt.source + 3, in check_setif_failure()
1394 sizeof(ifr.ifr_name)); in check_setif_failure()
1404 ifr.ifr_name, pcap_strerror(errno)); in check_setif_failure()
[all …]
/external/iproute2/ip/
Dtunnel.c74 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl()
99 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_add_ioctl()
101 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl()
112 fprintf(stderr, "add tunnel \"%s\" failed: %s\n", ifr.ifr_name, in tnl_add_ioctl()
125 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_del_ioctl()
127 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl()
140 ifr.ifr_name, strerror(errno)); in tnl_del_ioctl()
152 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_gen_ioctl()
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c136 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()
/external/wpa_supplicant_8/src/drivers/
Dlinux_ioctl.c27 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_iface_flags()
67 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_iface_up()
85 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_get_ifhwaddr()
108 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_ifhwaddr()
170 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); in linux_br_add_if()
192 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); in linux_br_del_if()
Ddriver_wired.c224 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
251 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
437 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_get_ifflags()
462 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_set_ifflags()
520 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_multi()
/external/autotest/client/deps/lansim/src/py/
Dtuntap.py131 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/android-clat/
Dtun.c55 strncpy(ifr.ifr_name, dev, IFNAMSIZ); in tun_alloc()
56 ifr.ifr_name[IFNAMSIZ-1] = '\0'; in tun_alloc()
63 strcpy(dev, ifr.ifr_name); in tun_alloc()
Dmtu.c40 strncpy(if_mtu.ifr_name, ifname, IFNAMSIZ); in getifmtu()
41 if_mtu.ifr_name[IFNAMSIZ - 1] = '\0'; in getifmtu()
/external/ppp/pppd/
Dsys-linux.c1197 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 …]
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()
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/openssh/openbsd-compat/
Dport-tun.c88 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/
DmDNSUNP.c173 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/
Dbrctl.c52 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/valgrind/memcheck/tests/solaris/
Dscalar_ioctl.c246 ifr.ifr_name[0] = x0 + 'l'; in sys_ioctl_SIOCGIFFLAGS_2()
247 ifr.ifr_name[1] = x0 + 'o'; in sys_ioctl_SIOCGIFFLAGS_2()
248 ifr.ifr_name[2] = x0 + '0'; in sys_ioctl_SIOCGIFFLAGS_2()
249 ifr.ifr_name[3] = x0 + '\0'; in sys_ioctl_SIOCGIFFLAGS_2()
267 ifr.ifr_name[0] = x0 + 'l'; in sys_ioctl_SIOCGIFNETMASK_2()
268 ifr.ifr_name[1] = x0 + 'o'; in sys_ioctl_SIOCGIFNETMASK_2()
269 ifr.ifr_name[2] = x0 + '0'; in sys_ioctl_SIOCGIFNETMASK_2()
270 ifr.ifr_name[3] = x0 + '\0'; in sys_ioctl_SIOCGIFNETMASK_2()
/external/compiler-rt/test/msan/
Dioctl_custom.cc31 printf("%d %zu %s\n", i, strlen(ifreqs[i].ifr_name), ifreqs[i].ifr_name); in main()
/external/dhcpcd-6.8.2/
Dif-linux-wext.c74 strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name)); in if_getssid_wext()
Dif.c132 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in if_carrier()
163 strlcpy(ifr.ifr_name, ifp->name, sizeof(ifr.ifr_name)); in if_setflag()
553 strlcpy(ifr.ifr_name, ifp->name, sizeof(ifr.ifr_name)); in if_discover()
636 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in if_domtu()
/external/autotest/client/deps/fakemodem/src/
Dfakenet.c43 strncpy (ifr.ifr_name, dev, IFNAMSIZ); in tun_alloc()
50 strncpy (dev, ifr.ifr_name, IFNAMSIZ); in tun_alloc()
/external/strace/
Dsock.c202 print_ifname(ifra[i].ifr_name); in decode_ifconf()
287 print_ifname(ifr.ifr_name); in sock_ioctl()
320 print_ifname(ifr.ifr_name); in sock_ioctl()
337 print_ifname(ifr.ifr_name); in sock_ioctl()
/external/webrtc/webrtc/base/
Dmacifaddrs_converter.cc145 char ifr_name[IFNAMSIZ]; member
216 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name) - 1); in GetIPAttributes()
/external/ppp/pppd/include/net/
Dif_ppp.h102 char ifr_name[IFNAMSIZ]; member
107 char ifr_name[IFNAMSIZ]; member
/external/autotest/client/profilers/powertop/src/
Dethernet.c65 strcpy(ifr.ifr_name, "eth0"); in activate_WOL_suggestion()
106 strcpy(ifr.ifr_name, "eth0"); in suggest_WOL_off()
/external/toybox/toys/other/
Difconfig.c112 xstrncpy(ifre.ifr_name, name, IFNAMSIZ); in display_ifconfig()
326 if(!strcmp(sl->str, ifre->ifr_name)) break; in show_iface()
328 if(!sl) display_ifconfig(ifre->ifr_name, toys.optflags & FLAG_a, 0); in show_iface()
354 xstrncpy(ifre.ifr_name, *argv, IFNAMSIZ); in ifconfig_main()
427 if (sock->sa_family == ARPHRD_INFINIBAND && !strchr(ifre.ifr_name, '/')) { in ifconfig_main()
430 sprintf(toybuf, "/sys/class/net/%s/address", ifre.ifr_name); in ifconfig_main()

1234