Home
last modified time | relevance | path

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

/netbsd/src/external/bsd/libpcap/dist/
Dpcap-enet.c51 readloop(int cnt, int if_fd, struct bpf_program *fp, printfunc printit) in readloop() argument
69 if ((cc = read(if_fd, (char *)buf.p, sizeof(buf))) < 0) in readloop()
70 efReadError(if_fd, "reader"); in readloop()
103 wrapup(if_fd); in readloop()
156 int if_fd; in initdevice() local
159 GETENETDEVICE(0, O_RDONLY, &if_fd); in initdevice()
161 if_fd = open("/dev/enet", O_RDONLY, 0); in initdevice()
164 if (if_fd == -1) { in initdevice()
173 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) { in initdevice()
189 if (ioctl(if_fd, EIOCSETP, &ctl) == -1) { in initdevice()
[all …]
/netbsd/src/external/bsd/ipf/dist/iplang/
Diplang.h14 int if_fd; member
Diplang_y.y1289 if (ifp->if_fd == -1) in prep_packet()
1290 ifp->if_fd = initdevice(ifp->if_name, 5); in prep_packet()
1300 (void) send_ip(ifp->if_fd, ifp->if_MTU, (ip_t *)ipbuffer, gwip, 2); in prep_packet()
1365 cifp->if_fd = -1; in new_interface()