Lines Matching refs:ppp_fd
144 static int ppp_fd = -1; /* fd which is set to PPP discipline */ variable
269 if (ioctl(ppp_fd, PPPIOCXFERUNIT, 0) < 0) {
312 ppp_fd = fd;
347 if (ioctl(ppp_fd, PPPIOCXFERUNIT, 0) < 0) { in restore_loop()
369 ppp_fd = loop_slave; in restore_loop()
485 if (fd == ppp_fd)
486 ppp_fd = -1;
498 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) == 0) { in clean_check()
661 ppp_fd = loop_slave; in open_ppp_loopback()
662 if (ioctl(ppp_fd, TIOCSETD, &pppdisc) < 0) { in open_ppp_loopback()
670 if (ioctl(ppp_fd, PPPIOCGUNIT, &ifunit) < 0) { in open_ppp_loopback()
679 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &flags) < 0) { in open_ppp_loopback()
683 if (ioctl(ppp_fd, PPPIOCSFLAGS, (caddr_t) &flags) < 0) in open_ppp_loopback()
853 if (ioctl(ppp_fd, PPPIOCSASYNCMAP, (caddr_t) &asyncmap) < 0) {
858 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) < 0) {
864 if (ioctl(ppp_fd, PPPIOCSFLAGS, (caddr_t) &x) < 0) {
879 if (ioctl(ppp_fd, PPPIOCSXASYNCMAP, accm) < 0 && errno != ENOTTY)
896 if (ioctl(ppp_fd, PPPIOCSMRU, (caddr_t) &mru) < 0) {
900 if (ioctl(ppp_fd, PPPIOCSRASYNCMAP, (caddr_t) &asyncmap) < 0) {
904 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) < 0) {
909 if (ioctl(ppp_fd, PPPIOCSFLAGS, (caddr_t) &x) < 0) {
945 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) < 0) {
951 if (ioctl(ppp_fd, PPPIOCSFLAGS, (caddr_t) &x) < 0)
966 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) < 0) {
981 return ioctl(ppp_fd, PPPIOCGIDLE, ip) >= 0;
996 if (ioctl(ppp_fd, PPPIOCSPASS, pass) < 0) {
1002 if (ioctl(ppp_fd, PPPIOCSACTIVE, active) < 0) {
1020 if (ioctl(ppp_fd, PPPIOCGFLAGS, (caddr_t) &x) < 0) {
1026 if (ioctl(ppp_fd, PPPIOCSFLAGS, (caddr_t) &x) < 0) {
1030 if (vjcomp && ioctl(ppp_fd, PPPIOCSMAXCID, (caddr_t) &maxcid) < 0) {
1073 if (ioctl(ppp_fd, PPPIOCSNPMODE, &npi) < 0) {
1094 ioctl(ppp_fd, PPPIOCSNPMODE, (caddr_t) &npi);