Lines Matching refs:fd
60 int i, fd;
78 if ((fd = open(devname, O_RDWR)) < 0)
85 if (dlattachreq(fd, i) == -1)
90 else if (dlokack(fd, buf) == -1)
96 if (dlpromisconreq(fd, DL_PROMISC_SAP) < 0)
101 else if (dlokack(fd, buf) < 0)
108 dlbindreq(fd, 22, 1, DL_HP_RAWDLS, 0, 0);
110 dlbindreq(fd, ETHERTYPE_IP, 0, DL_CLDLS, 0, 0);
112 dlbindack(fd, buf);
117 if (strioctl(fd, DLIOCRAW, -1, 0, NULL) == -1)
123 return fd;
128 * output an IP packet onto a fd opened for /dev/nit
130 int sendip(fd, pkt, len)
131 int fd, len;
154 if (putmsg(fd, cp, dp, pri) == -1)
159 if (ioctl(fd, I_FLUSH, FLUSHW) == -1)