Lines Matching refs:opendevice
52 static int opendevice __P((char *, int));
147 if (opendevice(ipfname, 1) >= 0)
180 static int opendevice(ipfdev, check)
214 if ((opendevice(ipfname, 1) != -2) &&
226 if (opendevice(ipfname, 0) != -2) {
243 (void) opendevice(ipfname, 1);
309 if (opendevice(ipfname, 1) != -2 &&
373 if (opendevice(IPSTATE_NAME, 1) == -2)
416 if (opendevice(IPL_AUTH, 1) == -1)
437 if (opendevice(ipfname, 1) == -2)
469 if (opendevice(ipfname, 1) != -2 && ioctl(fd, SIOCSWAPA, &in) == -1)
480 if (opendevice(ipfname, 1) != -2 && ioctl(fd, SIOCFRSYN, &frsyn) == -1)
498 if (opendevice(ipfname, 1) != -2) {