Home
last modified time | relevance | path

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

1234

/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/ppp/pppd/
Dsys-linux.c1194 struct ifreq ifr; in netif_set_mtu()
1210 struct ifreq ifr; in netif_get_mtu()
1780 struct ifreq *ifr, *ifend; in get_ether_addr()
1783 struct ifreq ifreq, bestifreq; in get_ether_addr() local
1785 struct ifreq ifs[MAX_IFS]; in get_ether_addr()
1802 ifend = ifs + (ifc.ifc_len / sizeof(struct ifreq)); in get_ether_addr()
1806 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); in get_ether_addr()
1811 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0) in get_ether_addr()
1814 if (((ifreq.ifr_flags ^ FLAGS_GOOD) & FLAGS_MASK) != 0) in get_ether_addr()
1819 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()
1508 struct ifreq ifr;
1769 struct ifreq ifr;
1792 struct ifreq ifr;
1973 struct ifreq ifr;
[all …]
/external/strace/
Dsock.c44 print_ifreq_addr(struct tcb *tcp, const struct ifreq *ifr, const long addr) in print_ifreq_addr()
54 printstr(tcp, addr + offsetof(struct ifreq, ifr_addr.sa_data), in print_ifreq_addr()
67 const struct ifreq *ifr) in print_ifreq()
141 const unsigned int n = (unsigned int) len / sizeof(struct ifreq); in print_ifc_len()
143 if (len < 0 || n * sizeof(struct ifreq) != (unsigned int) len) in print_ifc_len()
189 struct ifreq ifra[nifra > max_strlen ? max_strlen : nifra]; in decode_ifconf()
222 struct ifreq ifr; in sock_ioctl()
/external/autotest/client/profilers/powertop/src/
Dethernet.c55 struct ifreq ifr; in activate_WOL_suggestion()
59 memset(&ifr, 0, sizeof(struct ifreq)); in activate_WOL_suggestion()
96 struct ifreq ifr; in suggest_WOL_off()
100 memset(&ifr, 0, sizeof(struct ifreq)); in suggest_WOL_off()
/external/wpa_supplicant_8/src/drivers/
Dlinux_ioctl.c20 struct ifreq ifr; in linux_set_iface_flags()
60 struct ifreq ifr; in linux_iface_up()
82 struct ifreq ifr; in linux_get_ifhwaddr()
105 struct ifreq ifr; in linux_set_ifhwaddr()
162 struct ifreq ifr; in linux_br_add_if()
184 struct ifreq ifr; in linux_br_del_if()
Ddriver_nl80211_android.c45 struct ifreq ifr; in android_priv_cmd()
79 struct ifreq ifr; in android_pno_start()
/external/iputils/
Drdisc.c1105 struct ifreq ifreq, *ifr; in initifs() local
1124 bufsize = numifs * sizeof(struct ifreq); in initifs()
1152 for (i = 0, n = ifc.ifc_len/sizeof (struct ifreq); n > 0; n--, ifr++) { in initifs()
1153 ifreq = *ifr; in initifs()
1154 if (strlen(ifreq.ifr_name) >= IFNAMSIZ) in initifs()
1156 if (ioctl(sock, SIOCGIFFLAGS, (char *)&ifreq) < 0) { in initifs()
1162 if ((ifreq.ifr_flags & IFF_UP) == 0) in initifs()
1164 if (ifreq.ifr_flags & IFF_LOOPBACK) in initifs()
1166 if ((ifreq.ifr_flags & (IFF_MULTICAST|IFF_BROADCAST|IFF_POINTOPOINT)) == 0) in initifs()
1172 interfaces[i].flags = ifreq.ifr_flags; in initifs()
[all …]
Drarpd.c90 struct ifreq *ifrp, *ifend; in load_if()
94 struct ifreq ibuf[256]; in load_if()
104 ifc.ifc_len < (int)sizeof(struct ifreq)) { in load_if()
119 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in load_if()
615 struct ifreq ifr; in main()
/external/libpcap/Win32/Include/net/
Dif.h156 struct ifreq { struct
183 (sizeof(struct ifreq) - sizeof(struct sockaddr) + \ argument
184 (ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
212 struct ifreq *ifcu_req;
/external/libpcap/
Dfad-gifc.c139 register struct ifreq *ifrp, *ifend, *ifnext; in pcap_findalldevs_interfaces()
147 struct ifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs_interfaces()
197 ifrp = (struct ifreq *)buf; in pcap_findalldevs_interfaces()
198 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcap_findalldevs_interfaces()
215 ifnext = (struct ifreq *)((char *)ifrp + n); in pcap_findalldevs_interfaces()
/external/iproute2/ip/
Dtunnel.c70 struct ifreq ifr; in tnl_get_ioctl()
94 struct ifreq ifr; in tnl_add_ioctl()
120 struct ifreq ifr; in tnl_del_ioctl()
148 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()
200 struct ifreq ifr; in do_add()
212 struct ifreq ifr; in do_del()
Diplink.c882 struct ifreq ifr; in do_chflags()
909 struct ifreq ifr; in do_changename()
930 struct ifreq ifr; in set_qlen()
952 struct ifreq ifr; in set_mtu()
974 struct ifreq ifr; in get_address()
1015 char *lla, struct ifreq *ifr) in parse_address()
1032 static int set_address(struct ifreq *ifr, int brd) in set_address()
1057 struct ifreq ifr0, ifr1; in do_set()
/external/toybox/toys/pending/
Dbrctl.c45 struct ifreq ifr;
60 struct ifreq ifr; in get_br_info()
142 struct ifreq ifr; in br_addif()
160 struct ifreq ifr; in br_delif()
194 struct ifreq ifr; in set_time()
260 struct ifreq ifr; in set_cost_prio()
/external/toybox/toys/other/
Difconfig.c98 struct ifreq ifre; in display_ifconfig()
309 struct ifreq *ifre; in show_iface()
315 ifcon.ifc_len = sizeof(struct ifreq)*num; in show_iface()
318 if (ifcon.ifc_len != sizeof(struct ifreq)*num) break; in show_iface()
322 for(num = 0; num < ifcon.ifc_len && ifre; num += sizeof(struct ifreq), ifre++) in show_iface()
338 #define IFREQ_OFFSZ(x) -(int)((offsetof(struct ifreq, x)<<16) + sizeof(ifre.x))
343 struct ifreq ifre; in ifconfig_main()
353 memset(&ifre, 0, sizeof(struct ifreq)); in ifconfig_main()
/external/curl/lib/
Dif2ip.h49 struct ifreq { struct
79 #define SIOCGIFADDR _IOW('s', 102, struct ifreq) /* Get if addr */ argument
/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/mdnsresponder/mDNSPosix/
DmDNSUNP.c96 struct ifreq ifr; in get_ifi_info_linuxv6()
231 struct ifreq *ifr, ifrcopy; in get_ifi_info()
253 len = 100 * sizeof(struct ifreq); /* initial buffer size guess */ in get_ifi_info()
270 len += 10 * sizeof(struct ifreq); /* increment */ in get_ifi_info()
280 ifr = (struct ifreq *) ptr; in get_ifi_info()
283 if (sizeof(struct ifreq) > sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr)) in get_ifi_info()
284 ptr += sizeof(struct ifreq); in get_ifi_info()
/external/valgrind/memcheck/tests/solaris/
Dioctl.c25 ifc.ifc_len = (n_ifs + 1) * sizeof(struct ifreq); in test_SIOCGIFCONF()
26 ifc.ifc_buf = malloc((n_ifs + 1) * sizeof(struct ifreq)); in test_SIOCGIFCONF()
/external/kernel-headers/original/uapi/linux/
Dif.h203 struct ifreq { struct
256 struct ifreq __user *ifcu_req;
/external/iproute2/include/linux/
Dif.h203 struct ifreq { struct
256 struct ifreq *ifcu_req;
/external/android-clat/
Dmtu.c34 struct ifreq if_mtu; in getifmtu()
/external/openssh/openbsd-compat/
Dport-tun.c61 struct ifreq ifr; in sys_tun_open()
121 struct ifreq ifr; in sys_tun_open()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c228 struct ifreq ifr, *ifrp; in get_node_id()
247 #define ifreq_size(i) max(sizeof(struct ifreq),\ in get_node_id()
250 #define ifreq_size(i) sizeof(struct ifreq) in get_node_id()
266 ifrp = (struct ifreq *)((char *) ifc.ifc_buf+i); in get_node_id()

1234