HomeSort by relevance Sort by last modified time
    Searched defs:ifr (Results 51 - 75 of 100) sorted by null

1 23 4

  /external/dhcpcd-6.8.2/
if.c 124 struct ifreq ifr; local
131 memset(&ifr, 0, sizeof(ifr));
132 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name));
133 if (ioctl(s, SIOCGIFFLAGS, &ifr) == -1) {
137 iface->flags = (unsigned int)ifr.ifr_flags;
146 r = ifr.ifr_flags & IFF_RUNNING ? LINK_UP : LINK_UNKNOWN;
148 r = ifr.ifr_flags & IFF_RUNNING ? LINK_UP : LINK_DOWN;
157 struct ifreq ifr; local
270 struct ifreq ifr; local
631 struct ifreq ifr; local
    [all...]
  /external/dnsmasq/src/
helper.c 353 struct ifreq ifr; local
354 ifr.ifr_ifindex = lease->last_interface;
355 if (ioctl(daemon->dhcpfd, SIOCGIFNAME, &ifr) != -1)
356 strncpy(buf->interface, ifr.ifr_name, IF_NAMESIZE);
dhcp.c 97 struct ifreq ifr; local
170 if (!indextoname(daemon->dhcpfd, iface_index, ifr.ifr_name))
179 ifr.ifr_addr.sa_family = AF_INET;
180 if (ioctl(daemon->dhcpfd, SIOCGIFADDR, &ifr) != -1 )
183 iface_addr = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr;
186 if (!iface_check(AF_INET, (struct all_addr *)addrp, ifr.ifr_name, &iface_index))
190 if (tmp->name && (strcmp(tmp->name, ifr.ifr_name) == 0))
196 if (ioctl(daemon->dhcpfd, SIOCGIFADDR, &ifr) == -1)
198 my_syslog(MS_DHCP | LOG_WARNING, _("DHCP packet received on %s which has no address"), ifr.ifr_name);
202 iface_addr = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr
    [all...]
forward.c 641 struct ifreq ifr; local
679 if (!indextoname(listen->fd, if_index, ifr.ifr_name) ||
680 !iface_check(listen->family, &dst_addr, ifr.ifr_name, &if_index))
685 ioctl(listen->fd, SIOCGIFNETMASK, &ifr) == -1)
688 netmask = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr;
network.c 25 struct ifreq ifr; local
30 ifr.ifr_ifindex = index;
31 if (ioctl(fd, SIOCGIFNAME, &ifr) == -1)
34 strncpy(name, ifr.ifr_name, IF_NAMESIZE);
127 struct ifreq ifr; local
138 !indextoname(fd, if_index, ifr.ifr_name) ||
139 ioctl(fd, SIOCGIFFLAGS, &ifr) == -1)
150 loopback = ifr.ifr_flags & IFF_LOOPBACK;
152 if (ioctl(fd, SIOCGIFMTU, &ifr) != -1)
153 mtu = ifr.ifr_mtu
1268 struct ifreq ifr; local
    [all...]
  /external/iproute2/ip/
iptuntap.c 49 static int tap_add_ioctl(struct ifreq *ifr, uid_t uid, gid_t gid)
55 ifr->ifr_flags |= IFF_TUN_EXCL;
63 if (ioctl(fd, TUNSETIFF, ifr)) {
85 static int tap_del_ioctl(struct ifreq *ifr)
94 if (ioctl(fd, TUNSETIFF, ifr)) {
109 struct ifreq *ifr, uid_t *uid, gid_t *gid)
113 memset(ifr, 0, sizeof(*ifr));
115 ifr->ifr_flags |= IFF_NO_PI;
121 if (ifr->ifr_flags & IFF_TAP)
206 struct ifreq ifr; local
218 struct ifreq ifr; local
    [all...]
  /external/mdnsresponder/mDNSPosix/
mDNSUNP.c 96 struct ifreq ifr; local
173 strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
174 if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) {
190 ifi->ifi_flags = ifr.ifr_flags;
231 struct ifreq *ifr, ifrcopy; local
280 ifr = (struct ifreq *) ptr;
283 if (sizeof(struct ifreq) > sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr))
286 ptr += sizeof(ifr->ifr_name) + GET_SA_LEN(ifr->ifr_addr)
    [all...]
  /external/ppp/pppd/plugins/rp-pppoe/
pppoe-discovery.c 105 struct ifreq ifr; local
138 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
139 if (ioctl(fd, SIOCGIFHWADDR, &ifr) < 0) {
142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN);
144 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) {
160 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
161 if (ioctl(fd, SIOCGIFMTU, &ifr) < 0) {
164 if (ifr.ifr_mtu < ETH_DATA_LEN)
    [all...]
  /external/toybox/toys/pending/
brctl.c 45 struct ifreq ifr; local
52 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ);
53 ifr.ifr_data = (char *)args;
54 xioctl(TT.sockfd, SIOCDEVPRIVATE, &ifr);
60 struct ifreq ifr; local
65 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ);
66 ifr.ifr_data = (char *)args;
68 if (ioctl(TT.sockfd, SIOCDEVPRIVATE, &ifr) < 0) {
142 struct ifreq ifr; local
147 ifr.ifr_ifindex = index
160 struct ifreq ifr; local
194 struct ifreq ifr; local
260 struct ifreq ifr; local
    [all...]
traceroute.c 173 struct ifreq ifr; local
175 snprintf(ifr.ifr_name, IFNAMSIZ, "%s", TT.iface);
176 if (setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, &ifr, sizeof(ifr)))
  /external/wpa_supplicant_8/src/drivers/
driver_roboswitch.c 60 struct ifreq ifr; member in struct:wpa_driver_roboswitch_data
88 struct mii_ioctl_data *mii = if_mii(&drv->ifr);
93 if (ioctl(drv->fd, SIOCGMIIREG, &drv->ifr) < 0) {
105 struct mii_ioctl_data *mii = if_mii(&drv->ifr);
111 if (ioctl(drv->fd, SIOCSMIIREG, &drv->ifr) < 0) {
396 os_memset(&drv->ifr, 0, sizeof(drv->ifr));
397 os_strlcpy(drv->ifr.ifr_name, drv->ifname, IFNAMSIZ);
398 if (ioctl(drv->fd, SIOCGMIIPHY, &drv->ifr) < 0) {
405 if (if_mii(&drv->ifr)->phy_id != ROBO_PHY_ADDR &
    [all...]
driver_wired.c 171 struct ifreq ifr; local
189 os_memset(&ifr, 0, sizeof(ifr));
190 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name));
191 if (ioctl(drv->common.sock, SIOCGIFINDEX, &ifr) != 0) {
199 addr.sll_ifindex = ifr.ifr_ifindex;
210 if (wired_multicast_membership(drv->common.sock, ifr.ifr_ifindex,
217 os_memset(&ifr, 0, sizeof(ifr));
    [all...]
  /external/wpa_supplicant_8/src/l2_packet/
l2_packet_linux.c 255 struct ifreq ifr; local
277 os_memset(&ifr, 0, sizeof(ifr));
278 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name));
279 if (ioctl(l2->fd, SIOCGIFINDEX, &ifr) < 0) {
286 l2->ifindex = ifr.ifr_ifindex;
290 ll.sll_ifindex = ifr.ifr_ifindex;
300 if (ioctl(l2->fd, SIOCGIFHWADDR, &ifr) < 0) {
307 os_memcpy(l2->own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN)
424 struct ifreq ifr; local
    [all...]
  /hardware/broadcom/wlan/bcmdhd/dhdutil/
dhdu_linux.c 101 struct ifreq *ifr = (struct ifreq *)dhd; local
104 dhd_nli.ifidx = if_nametoindex(ifr->ifr_name);
106 fprintf(stderr, "invalid device %s\n", ifr->ifr_name);
120 struct ifreq *ifr = (struct ifreq *)dhd; local
125 ifr->ifr_data = (caddr_t)ioc;
131 ret = ioctl(s, SIOCDEVPRIVATE, ifr);
195 struct ifreq ifr; local
207 ifr.ifr_data = (caddr_t)&info;
208 strncpy(ifr.ifr_name, name, IFNAMSIZ);
209 if ((ret = ioctl(s, SIOCETHTOOL, &ifr)) < 0)
428 struct ifreq *ifr = (struct ifreq *)dev_handle; local
443 struct ifreq ifr; local
    [all...]
  /hardware/interfaces/tetheroffload/control/1.0/vts/functional/
VtsHalTetheroffloadControlV1_0TargetTest.cpp 260 struct ifreq ifr = {}; local
261 strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name));
264 int ret = ioctl(sock, SIOCGIFFLAGS, &ifr, sizeof(ifr));
266 return (ret == 0) && (ifr.ifr_flags & IFF_UP);
  /hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
IPACM_ConntrackListener.cpp 146 struct ifreq ifr; local
199 memset(&ifr, 0, sizeof(struct ifreq));
200 ifr.ifr_ifindex = data->if_index;
201 if (ioctl(fd, SIOCGIFNAME, &ifr) < 0)
211 if (strncmp(ifr.ifr_name,
    [all...]
IPACM_Main.cpp 969 struct ifreq ifr; local
    [all...]
IPACM_Netlink.cpp 1603 struct ifreq ifr; local
    [all...]
  /external/e2fsprogs/lib/uuid/
gen_uuid.c 229 struct ifreq ifr, *ifrp; local
268 strncpy(ifr.ifr_name, ifrp->ifr_name, IFNAMSIZ);
270 if (ioctl(sd, SIOCGIFHWADDR, &ifr) < 0)
272 a = (unsigned char *) &ifr.ifr_hwaddr.sa_data;
275 if (ioctl(sd, SIOCGENADDR, &ifr) < 0)
277 a = (unsigned char *) ifr.ifr_enaddr;
  /external/ipsec-tools/src/racoon/
grabmyaddr.c 257 struct ifreq ifr; local
258 ifr.ifr_ifindex = i->ifa_ifindex;
259 ioctl(fd, SIOCGIFNAME, (void*)&ifr);
260 memcpy(i->ifa_name, ifr.ifr_name, 16);
441 struct ifreq *ifr, *ifr_end;
495 for (ifr = ifconf.ifc_req;
496 ifr < ifr_end;
497 ifr = (struct ifreq *)((caddr_t)ifr + _IFREQ_LEN(ifr))) {
    [all...]
  /external/iputils/
rarpd.c 615 struct ifreq ifr; local
616 memset(&ifr, 0, sizeof(ifr));
617 strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
618 if (ioctl(pset[0].fd, SIOCGIFINDEX, &ifr)) {
622 ifidx = ifr.ifr_ifindex;
  /external/valgrind/memcheck/tests/solaris/
scalar_ioctl.c 300 struct ifreq ifr; local
302 ifr.ifr_name[0] = x0 + 'l';
303 ifr.ifr_name[1] = x0 + 'o';
304 ifr.ifr_name[2] = x0 + '0';
305 ifr.ifr_name[3] = x0 + '\0';
308 SY(SYS_ioctl, x0 - 1, x0 + SIOCGIFFLAGS, &ifr + x0); FAIL;
321 struct ifreq ifr; local
323 ifr.ifr_name[0] = x0 + 'l';
324 ifr.ifr_name[1] = x0 + 'o';
325 ifr.ifr_name[2] = x0 + '0'
    [all...]
  /external/wpa_supplicant_8/src/ap/
iapp.c 378 struct ifreq ifr; local
404 os_memset(&ifr, 0, sizeof(ifr));
405 os_strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));
406 if (ioctl(iapp->udp_sock, SIOCGIFINDEX, &ifr) != 0) {
412 ifindex = ifr.ifr_ifindex;
414 if (ioctl(iapp->udp_sock, SIOCGIFADDR, &ifr) != 0) {
420 paddr = (struct sockaddr_in *) &ifr.ifr_addr;
429 if (ioctl(iapp->udp_sock, SIOCGIFBRDADDR, &ifr) != 0)
    [all...]
vlan_full.c 135 struct ifreq ifr; local
159 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name));
160 ifr.ifr_data = (void *) args;
162 if (ioctl(fd, SIOCDEVPRIVATE, &ifr) < 0 && errno != EINVAL) {
186 struct ifreq ifr; local
210 os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name));
211 ifr.ifr_data = (void *) args;
213 if (ioctl(fd, SIOCDEVPRIVATE, &ifr) < 0)
271 struct ifreq ifr; local
324 struct ifreq ifr; local
    [all...]
  /system/bt/btif/src/
btif_pan.cc 283 struct ifreq ifr; local
290 memset(&ifr, 0, sizeof(ifr));
291 strlcpy(ifr.ifr_name, devname, IFNAMSIZ);
292 err = ioctl(sk, SIOCGIFHWADDR, &ifr);
301 strlcpy(ifr.ifr_name, devname, IFNAMSIZ);
302 memcpy(ifr.ifr_hwaddr.sa_data, addr->address, 6);
312 if (ifr.ifr_hwaddr.sa_data[0] & 0x01) {
315 ifr.ifr_hwaddr.sa_data[0] &= ~0x01;
318 err = ioctl(sk, SIOCSIFHWADDR, (caddr_t)&ifr);
348 struct ifreq ifr; local
378 struct ifreq ifr; local
    [all...]

Completed in 2560 milliseconds

1 23 4