/external/dnsmasq/src/ |
D | bpf.c | 26 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/strace/tests-mx32/ |
D | ioctl_sock_gifconf.c | 47 if (val % (int) sizeof(struct ifreq)) in print_ifc_len() 51 val / (int) sizeof(struct ifreq)); in print_ifc_len() 82 i < (int) (MAX_STRLEN * sizeof(struct ifreq)); in print_ifconf() 83 i += sizeof(struct ifreq)) { in print_ifconf() 84 struct ifreq *ifr = (struct ifreq *) (ifc->ifc_buf + i); in print_ifconf() 96 if ((size_t) (ifc->ifc_len - i) >= sizeof(struct ifreq)) in print_ifconf() 137 struct ifreq *ifr = tail_alloc(2 * sizeof(*ifr)); in main()
|
/external/strace/tests-m32/ |
D | ioctl_sock_gifconf.c | 47 if (val % (int) sizeof(struct ifreq)) in print_ifc_len() 51 val / (int) sizeof(struct ifreq)); in print_ifc_len() 82 i < (int) (MAX_STRLEN * sizeof(struct ifreq)); in print_ifconf() 83 i += sizeof(struct ifreq)) { in print_ifconf() 84 struct ifreq *ifr = (struct ifreq *) (ifc->ifc_buf + i); in print_ifconf() 96 if ((size_t) (ifc->ifc_len - i) >= sizeof(struct ifreq)) in print_ifconf() 137 struct ifreq *ifr = tail_alloc(2 * sizeof(*ifr)); in main()
|
/external/strace/tests/ |
D | ioctl_sock_gifconf.c | 47 if (val % (int) sizeof(struct ifreq)) in print_ifc_len() 51 val / (int) sizeof(struct ifreq)); in print_ifc_len() 82 i < (int) (MAX_STRLEN * sizeof(struct ifreq)); in print_ifconf() 83 i += sizeof(struct ifreq)) { in print_ifconf() 84 struct ifreq *ifr = (struct ifreq *) (ifc->ifc_buf + i); in print_ifconf() 96 if ((size_t) (ifc->ifc_len - i) >= sizeof(struct ifreq)) in print_ifconf() 137 struct ifreq *ifr = tail_alloc(2 * sizeof(*ifr)); in main()
|
/external/ppp/pppd/ |
D | sys-linux.c | 1194 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 …]
|
D | sys-solaris.c | 387 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/autotest/client/profilers/powertop/src/ |
D | ethernet.c | 55 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/libcups/cups/ |
D | getifaddrs.c | 35 struct ifreq *ifp; /* Interface data */ in _cups_getifaddrs() 38 struct ifreq request; /* Interface request */ in _cups_getifaddrs() 94 ifp = (struct ifreq *)bufptr; in _cups_getifaddrs() 97 if (ifpsize < sizeof(struct ifreq)) in _cups_getifaddrs() 98 ifpsize = sizeof(struct ifreq); in _cups_getifaddrs()
|
/external/wpa_supplicant_8/src/drivers/ |
D | linux_ioctl.c | 20 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()
|
D | driver_wired_common.c | 35 struct ifreq ifr; in driver_wired_get_ifflags() 60 struct ifreq ifr; in driver_wired_set_ifflags() 85 struct ifreq ifr; in driver_wired_multi()
|
/external/iputils/ |
D | rdisc.c | 1105 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 …]
|
/external/libpcap/Win32/Include/net/ |
D | if.h | 156 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/ |
D | fad-gifc.c | 140 register struct ifreq *ifrp, *ifend, *ifnext; in pcap_findalldevs_interfaces() 148 struct ifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs_interfaces() 198 ifrp = (struct ifreq *)buf; in pcap_findalldevs_interfaces() 199 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcap_findalldevs_interfaces() 216 ifnext = (struct ifreq *)((char *)ifrp + n); in pcap_findalldevs_interfaces()
|
/external/toybox/toys/pending/ |
D | brctl.c | 45 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/iproute2/ip/ |
D | iptuntap.c | 48 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()
|
D | tunnel.c | 70 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()
|
/external/toybox/toys/net/ |
D | ifconfig.c | 98 struct ifreq ifre; in display_ifconfig() 312 struct ifreq *ifre; in show_iface() 318 ifcon.ifc_len = sizeof(struct ifreq)*num; in show_iface() 321 if (ifcon.ifc_len != sizeof(struct ifreq)*num) break; in show_iface() 325 for(num = 0; num < ifcon.ifc_len && ifre; num += sizeof(struct ifreq), ifre++) in show_iface() 341 #define IFREQ_OFFSZ(x) -(int)((offsetof(struct ifreq, x)<<16) + sizeof(ifre.x)) 346 struct ifreq ifre; in ifconfig_main() 356 memset(&ifre, 0, sizeof(struct ifreq)); in ifconfig_main()
|
/external/curl/lib/ |
D | if2ip.h | 49 struct ifreq { struct 79 #define SIOCGIFADDR _IOW('s', 102, struct ifreq) /* Get if addr */ argument
|
/external/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_new_file_test.c | 100 struct ifreq ifreq; in stage_file_test() local 604 memset(&ifreq, 0, sizeof(ifreq)); in stage_file_test() 605 snprintf(ifreq.ifr_name, sizeof(ifreq.ifr_name) - 1, "lo"); in stage_file_test() 606 show_result(ioctl(fd, 35123, &ifreq), 1); in stage_file_test() 610 show_result(ioctl(fd, 35123, &ifreq), 0); in stage_file_test()
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 257 struct ifreq ifr; in getifaddrs() 439 struct ifreq *iflist; in grab_myaddrs() 441 struct ifreq *ifr, *ifr_end; in grab_myaddrs() 454 iflist = (struct ifreq *)racoon_malloc(len); in grab_myaddrs() 489 ifr_end = (struct ifreq *) (ifconf.ifc_buf + ifconf.ifc_len); in grab_myaddrs() 492 (sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) > sizeof(struct ifreq) \ in grab_myaddrs() 493 ? sizeof((p)->ifr_name) + sysdep_sa_len(&(p)->ifr_addr) : sizeof(struct ifreq)) in grab_myaddrs() 497 ifr = (struct ifreq *)((caddr_t)ifr + _IFREQ_LEN(ifr))) { in grab_myaddrs()
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 96 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/ |
D | ioctl.c | 25 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/iproute2/include/linux/ |
D | if.h | 203 struct ifreq { struct 256 struct ifreq *ifcu_req;
|
/external/kernel-headers/original/uapi/linux/ |
D | if.h | 226 struct ifreq { struct 282 struct ifreq __user *ifcu_req;
|
/external/strace/mpers-mx32/ |
D | struct_ifreq.c | 41 typedef struct ifreq struct_ifreq;
|