• Home
  • Raw
  • Download

Lines Matching refs:ppp_fd

178 static int ppp_fd = -1;		/* fd which is set to PPP discipline */  variable
269 ppp_fd = new_fd; in set_ppp_fd()
277 return !hungup && ppp_fd >= 0; in still_ppp()
278 if (!hungup || ppp_fd == slave_fd) in still_ppp()
444 modify_flags(ppp_fd, SC_RCVB | SC_LOGB, in tty_establish_ppp()
541 return ppp_fd; in generic_establish_ppp()
600 close(ppp_fd); in generic_disestablish_ppp()
601 ppp_fd = -1; in generic_disestablish_ppp()
669 if (ioctl(ppp_fd, PPPIOCCONNECT, &ifunit) < 0) in cfg_bundle()
715 if (ioctl(ppp_fd, PPPIOCCONNECT, &ifnum) < 0) in bundle_attach()
747 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) == 0) { in clean_check()
1049 int fd = ppp_fd; in output()
1130 if (ppp_fd >= 0) { in read_packet()
1131 nr = read(ppp_fd, buf, len); in read_packet()
1151 if (new_style_driver && ppp_fd < 0 && ppp_dev_fd < 0) in read_packet()
1235 if (ioctl(ppp_fd, PPPIOCSASYNCMAP, (caddr_t) &asyncmap) < 0) { in tty_send_config()
1244 modify_flags(ppp_fd, SC_COMP_PROT|SC_COMP_AC|SC_SYNC, x); in tty_send_config()
1256 if (ioctl(ppp_fd, PPPIOCSXASYNCMAP, accm) < 0 && errno != ENOTTY) { in tty_set_xaccm()
1279 if (ioctl(ppp_fd, PPPIOCSMRU, (caddr_t) &mru) < 0) { in tty_recv_config()
1287 if (ioctl(ppp_fd, PPPIOCSRASYNCMAP, (caddr_t) &asyncmap) < 0) { in tty_recv_config()
2699 ppp_fd = -1; in open_ppp_loopback()
2713 flags = fcntl(ppp_fd, F_GETFL); in open_ppp_loopback()
2715 fcntl(ppp_fd, F_SETFL, flags | O_NONBLOCK) == -1) in open_ppp_loopback()
2718 if (ioctl(ppp_fd, TIOCSETD, &ppp_disc) < 0) in open_ppp_loopback()
2723 if (ioctl(ppp_fd, PPPIOCGUNIT, &ifunit) < 0) in open_ppp_loopback()