Lines Matching defs:ppp_fd
83 static int ppp_fd = -1; /* fd which is set to PPP discipline */
144 SYSDEBUG ((LOG_DEBUG, "setting ppp_fd to %d\n", new_fd));
145 ppp_fd = new_fd;
153 return !hungup && ppp_fd >= 0;
154 if (!hungup || ppp_fd == slave_fd)
376 return ppp_fd;
401 close(ppp_fd);
402 ppp_fd = -1;
441 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) == 0) {
476 int fd = ppp_fd;
554 if (ppp_fd >= 0) {
555 nr = read(ppp_fd, buf, len);
562 /* N.B. we read ppp_fd first since LCP packets come in there. */
1055 ppp_fd = -1;
1070 flags = fcntl(ppp_fd, F_GETFL);
1072 fcntl(ppp_fd, F_SETFL, flags | O_NONBLOCK) == -1)
1075 if (ioctl(ppp_fd, TIOCSETD, &ppp_disc) < 0)
1080 if (ioctl(ppp_fd, PPPIOCGUNIT, &ifunit) < 0)
1111 if (ppp_fd != slave_fd) {
1112 (void) ioctl(ppp_fd, TIOCSETD, &tty_disc);