/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/iproute2/ip/ |
D | tunnel.c | 68 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()
|
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() 193 struct ifreq ifr; in do_add() 209 struct ifreq ifr; in do_del()
|
D | iplink.c | 526 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/ |
D | sys-linux.c | 1160 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 …]
|
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() 1505 struct ifreq ifr; 1766 struct ifreq ifr; 1789 struct ifreq ifr; 1970 struct ifreq ifr; [all …]
|
/external/wpa_supplicant_8/src/drivers/ |
D | linux_ioctl.c | 20 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()
|
D | driver_wired.c | 210 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/ |
D | sock.c | 74 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/ |
D | fad-gifc.c | 149 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/ |
D | network.cc | 244 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/ |
D | grabmyaddr.c | 253 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/ |
D | common.c | 192 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/ |
D | if_ppp.h | 104 struct ifreq b; 109 struct ifreq b;
|
D | if.h | 165 struct ifreq { struct 218 struct ifreq __user *ifcu_req;
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 96 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/ |
D | driver_wired.c | 58 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/ |
D | if.h | 165 struct ifreq { struct 218 struct ifreq *ifcu_req;
|
/external/openssh/openbsd-compat/ |
D | port-tun.c | 60 struct ifreq ifr; in sys_tun_open() 120 struct ifreq ifr; in sys_tun_open()
|
/external/quake/quake/src/WinQuake/ |
D | net_udp.cpp | 85 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/ |
D | net.c | 187 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/ |
D | l2_packet_linux.c | 100 struct ifreq ifr; in l2_packet_init() 170 struct ifreq ifr; in l2_packet_get_ip_addr()
|
/external/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 224 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/ |
D | if.c | 152 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/ |
D | vlan_init.c | 46 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()
|