Home
last modified time | relevance | path

Searched refs:ifreq (Results 1 – 25 of 68) sorted by relevance

123

/external/dnsmasq/src/
Dbpf.c26 static struct iovec ifreq = { variable
34 struct ifreq *ifr; in iface_enumerate()
45 len += 10*sizeof(struct ifreq); in iface_enumerate()
72 len = sizeof(struct ifreq); in iface_enumerate()
75 ifr = (struct ifreq *)ptr; in iface_enumerate()
77 len = ifr->ifr_addr.sa_len + offsetof(struct ifreq, ifr_ifru); in iface_enumerate()
80 if (!expand_buf(&ifreq, len)) in iface_enumerate()
83 ifr = (struct ifreq *)ifreq.iov_base; in iface_enumerate()
143 if (expand_buf(&ifreq, sizeof(struct ifreq))) in init_bpf()
145 sprintf(ifreq.iov_base, "/dev/bpf%d", i++); in init_bpf()
[all …]
/external/iproute2/ip/
Dtunnel.c68 struct ifreq ifr; in tnl_ioctl_get_ifindex()
85 struct ifreq ifr; in tnl_ioctl_get_iftype()
103 static struct ifreq ifr; in tnl_ioctl_get_ifname()
120 struct ifreq ifr; in tnl_get_ioctl()
136 struct ifreq ifr; in tnl_add_ioctl()
155 struct ifreq ifr; in tnl_del_ioctl()
174 struct ifreq ifr; in tnl_gen_ioctl()
Diptuntap.c48 static int tap_add_ioctl(struct ifreq *ifr, uid_t uid, gid_t gid) in tap_add_ioctl()
84 static int tap_del_ioctl(struct ifreq *ifr) in tap_del_ioctl()
107 static int parse_args(int argc, char **argv, struct ifreq *ifr, uid_t *uid, gid_t *gid) in parse_args()
193 struct ifreq ifr; in do_add()
209 struct ifreq ifr; in do_del()
Diplink.c526 struct ifreq ifr; in do_chflags()
553 struct ifreq ifr; in do_changename()
574 struct ifreq ifr; in set_qlen()
596 struct ifreq ifr; in set_mtu()
618 struct ifreq ifr; in get_address()
659 char *lla, struct ifreq *ifr) in parse_address()
676 static int set_address(struct ifreq *ifr, int brd) in set_address()
702 struct ifreq ifr0, ifr1; in do_set()
/external/ppp/pppd/
Dsys-linux.c1160 struct ifreq ifr; in netif_set_mtu()
1176 struct ifreq ifr; in netif_get_mtu()
1748 struct ifreq *ifr, *ifend; in get_ether_addr()
1751 struct ifreq ifreq, bestifreq; in get_ether_addr() local
1753 struct ifreq ifs[MAX_IFS]; in get_ether_addr()
1770 ifend = ifs + (ifc.ifc_len / sizeof(struct ifreq)); in get_ether_addr()
1774 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); in get_ether_addr()
1779 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0) in get_ether_addr()
1782 if (((ifreq.ifr_flags ^ FLAGS_GOOD) & FLAGS_MASK) != 0) in get_ether_addr()
1787 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0) in get_ether_addr()
[all …]
Dsys-solaris.c387 struct ifreq *pifreq; in get_first_ethernet()
388 struct ifreq ifr; in get_first_ethernet()
405 req_size = num_ifs * sizeof(struct ifreq); in get_first_ethernet()
431 for (i = ifc.ifc_len / sizeof(struct ifreq); i > 0; i--, pifreq++) { in get_first_ethernet()
576 struct ifreq ifr; in sys_init()
776 struct ifreq ifr; in sys_cleanup()
1505 struct ifreq ifr;
1766 struct ifreq ifr;
1789 struct ifreq ifr;
1970 struct ifreq ifr;
[all …]
/external/wpa_supplicant_8/src/drivers/
Dlinux_ioctl.c20 struct ifreq ifr; in linux_set_iface_flags()
59 struct ifreq ifr; in linux_iface_up()
81 struct ifreq ifr; in linux_get_ifhwaddr()
104 struct ifreq ifr; in linux_set_ifhwaddr()
161 struct ifreq ifr; in linux_br_add_if()
183 struct ifreq ifr; in linux_br_del_if()
Ddriver_wired.c210 struct ifreq ifr; in wired_init_sockets()
417 struct ifreq ifr; in wpa_driver_wired_get_ifflags()
441 struct ifreq ifr; in wpa_driver_wired_set_ifflags()
465 struct ifreq ifr; in wpa_driver_wired_multi()
/external/strace/
Dsock.c74 struct ifreq *ifr;
87 struct ifreq ifr; in sock_ioctl()
196 + offsetof (struct ifreq, in sock_ioctl()
259 unsigned nifra = ifc.ifc_len / sizeof(struct ifreq); in sock_ioctl()
260 struct ifreq ifra[nifra]; in sock_ioctl()
279 + offsetof (struct ifreq, in sock_ioctl()
/external/libpcap/
Dfad-gifc.c149 struct ifreq ifrflags; in scan_proc_net_dev()
274 register struct ifreq *ifrp, *ifend, *ifnext; in pcap_findalldevs()
282 struct ifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs()
332 ifrp = (struct ifreq *)buf; in pcap_findalldevs()
333 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcap_findalldevs()
350 ifnext = (struct ifreq *)((char *)ifrp + n); in pcap_findalldevs()
/external/chromium/third_party/libjingle/source/talk/base/
Dnetwork.cc244 ifc.ifc_len = 64 * sizeof(struct ifreq); in CreateNetworks()
251 assert(ifc.ifc_len < static_cast<int>(64 * sizeof(struct ifreq))); in CreateNetworks()
253 struct ifreq* ptr = reinterpret_cast<struct ifreq*>(ifc.ifc_buf); in CreateNetworks()
254 struct ifreq* end = in CreateNetworks()
255 reinterpret_cast<struct ifreq*>(ifc.ifc_buf + ifc.ifc_len); in CreateNetworks()
272 ptr = reinterpret_cast<struct ifreq*>( in CreateNetworks()
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c253 struct ifreq ifr; in getifaddrs()
430 struct ifreq *iflist; in grab_myaddrs()
432 struct ifreq *ifr, *ifr_end; in grab_myaddrs()
445 iflist = (struct ifreq *)racoon_malloc(len); in grab_myaddrs()
476 ifr_end = (struct ifreq *) (ifconf.ifc_buf + ifconf.ifc_len); in grab_myaddrs()
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()
484 ifr = (struct ifreq *)((caddr_t)ifr + _IFREQ_LEN(ifr))) { in grab_myaddrs()
/external/bluetooth/bluez/network/
Dcommon.c192 struct ifreq ifr; in bnep_if_up()
217 struct ifreq ifr; in bnep_if_down()
243 struct ifreq ifr; in bnep_add_to_bridge()
/external/kernel-headers/original/linux/
Dif_ppp.h104 struct ifreq b;
109 struct ifreq b;
Dif.h165 struct ifreq { struct
218 struct ifreq __user *ifcu_req;
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c96 struct ifreq ifr; in get_ifi_info_linuxv6()
224 struct ifreq *ifr, ifrcopy; in get_ifi_info()
246 len = 100 * sizeof(struct ifreq); /* initial buffer size guess */ in get_ifi_info()
263 len += 10 * sizeof(struct ifreq); /* increment */ in get_ifi_info()
273 ifr = (struct ifreq *) ptr; in get_ifi_info()
276 if (sizeof(struct ifreq) > sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr)) in get_ifi_info()
277 ptr += sizeof(struct ifreq); in get_ifi_info()
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Ddriver_wired.c58 struct ifreq ifr; in wpa_driver_wired_get_ifflags()
82 struct ifreq ifr; in wpa_driver_wired_set_ifflags()
106 struct ifreq ifr; in wpa_driver_wired_multi()
/external/iproute2/include/linux/
Dif.h165 struct ifreq { struct
218 struct ifreq *ifcu_req;
/external/openssh/openbsd-compat/
Dport-tun.c60 struct ifreq ifr; in sys_tun_open()
120 struct ifreq ifr; in sys_tun_open()
/external/quake/quake/src/WinQuake/
Dnet_udp.cpp85 static void ifc_init_ifr(const char *name, struct ifreq *ifr) in ifc_init_ifr()
87 memset(ifr, 0, sizeof(struct ifreq)); in ifc_init_ifr()
94 struct ifreq ifr; in ifc_get_info()
/external/dhcpcd/
Dnet.c187 struct ifreq ifr; in init_interface()
251 struct ifreq ifr; in carrier_status()
287 struct ifreq ifr; in up_interface()
552 struct ifreq ifr; in do_mtu()
583 struct ifreq ifr; in open_udp_socket()
/external/wpa_supplicant_6/wpa_supplicant/src/l2_packet/
Dl2_packet_linux.c100 struct ifreq ifr; in l2_packet_init()
170 struct ifreq ifr; in l2_packet_get_ip_addr()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c224 struct ifreq ifr, *ifrp; in get_node_id()
243 #define ifreq_size(i) max(sizeof(struct ifreq),\ in get_node_id()
246 #define ifreq_size(i) sizeof(struct ifreq) in get_node_id()
262 ifrp = (struct ifreq *)((char *) ifc.ifc_buf+i); in get_node_id()
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c152 struct ifreq ifreq, *ifr; in getHWaddr() local
162 ifreq.ifr_name[0] = '\0'; in getHWaddr()
164 ifr = (struct ifreq *)((caddr_t)ifc.ifc_req + i); in getHWaddr()
281 struct ifreq ifr; in openInterface()
423 struct ifreq ifr; in openInterface()
/external/wpa_supplicant_8/src/ap/
Dvlan_init.c46 struct ifreq ifr; in ifconfig_helper()
113 struct ifreq ifr; in br_delif()
164 struct ifreq ifr; in br_addif()
249 struct ifreq ifr; in br_addbr()
302 struct ifreq ifr; in br_getnumports()

123