Home
last modified time | relevance | path

Searched refs:arp_fd (Results 1 – 8 of 8) sorted by relevance

/external/dhcpcd/
Darp.c207 if (iface->arp_fd == -1) { in send_arp_announce()
209 add_event(iface->arp_fd, handle_arp_packet, iface); in send_arp_announce()
239 delete_event(iface->arp_fd); in send_arp_announce()
240 close(iface->arp_fd); in send_arp_announce()
241 iface->arp_fd = -1; in send_arp_announce()
265 if (iface->arp_fd == -1) { in send_arp_probe()
267 add_event(iface->arp_fd, handle_arp_packet, iface); in send_arp_probe()
Dlpf.c108 fd = &iface->arp_fd; in open_socket()
147 fd = iface->arp_fd; in send_raw_packet()
161 fd = iface->arp_fd; in get_raw_packet()
Dbpf.c113 fdp = &iface->arp_fd; in open_socket()
153 fd = iface->arp_fd; in send_raw_packet()
171 fd = iface->arp_fd; in get_raw_packet()
Ddhcpcd.h99 int arp_fd; member
Ddhcpcd.c1704 if (iface->arp_fd != -1) { in close_sockets()
1705 delete_event(iface->arp_fd); in close_sockets()
1706 close(iface->arp_fd); in close_sockets()
1707 iface->arp_fd = -1; in close_sockets()
Dnet.c221 iface->arp_fd = -1; in init_interface()
/external/qemu/
Dnet-android.c1301 static int arp_fd = 0; in tap_alloc() local
1373 TFR(arp_fd = open ("/dev/tap", O_RDWR, 0)); in tap_alloc()
1374 if (arp_fd < 0) in tap_alloc()
1382 if (ioctl(arp_fd, I_STR, &strioc_if) < 0){ in tap_alloc()
1391 if ((arp_muxid = ioctl (ip_fd, link_type, arp_fd)) < 0) in tap_alloc()
Dnet.c1173 static int arp_fd = 0; in tap_alloc() local
1245 TFR(arp_fd = open ("/dev/tap", O_RDWR, 0)); in tap_alloc()
1246 if (arp_fd < 0) in tap_alloc()
1254 if (ioctl(arp_fd, I_STR, &strioc_if) < 0){ in tap_alloc()
1263 if ((arp_muxid = ioctl (ip_fd, link_type, arp_fd)) < 0) in tap_alloc()