Home
last modified time | relevance | path

Searched refs:if_fd (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/libpcap/
H A Dpcap-enet.c46 readloop(int cnt, int if_fd, struct bpf_program *fp, printfunc printit) in readloop() argument
64 if ((cc = read(if_fd, (char *)buf.p, sizeof(buf))) < 0) in readloop()
65 efReadError(if_fd, "reader"); in readloop()
98 wrapup(if_fd); in readloop()
151 int if_fd; in initdevice() local
154 GETENETDEVICE(0, O_RDONLY, &if_fd); in initdevice()
156 if_fd = open("/dev/enet", O_RDONLY, 0); in initdevice()
159 if (if_fd == -1) { in initdevice()
168 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) { in initdevice()
184 if (ioctl(if_fd, EIOCSETP, &ctl) == -1) { in initdevice()
[all …]
/freebsd/sbin/ipf/iplang/
H A Diplang.h13 int if_fd; member
H A Diplang_y.y1223 if (ifp->if_fd == -1) in prep_packet()
1224 ifp->if_fd = initdevice(ifp->if_name, 5); in prep_packet()
1234 (void) send_ip(ifp->if_fd, ifp->if_MTU, (ip_t *)ipbuffer, gwip, 2); in prep_packet()
1299 cifp->if_fd = -1; in new_interface()