Home | History | Annotate | Download | only in pppd

Lines Matching full:ppp

3  * PPP interfaces on Linux systems
174 static int ppp_disc = N_PPP; /* The PPP discpline */
176 static int ppp_fd = -1; /* fd which is set to PPP discipline */
186 * For the new-style driver, it is the fd of an instance of /dev/ppp
187 * which is attached to the ppp unit and is used for controlling it.
189 int ppp_dev_fd = -1; /* fd for /dev/ppp (new style driver) */
257 * Determine if the PPP connection should still be present.
285 * PPP driver.
301 error("Failed to set PPP kernel option flags: %m");
393 * tty_establish_ppp - Turn the serial port into a ppp interface.
408 * Demand mode - prime the old ppp device to relinquish the unit.
412 error("ioctl(transfer ppp unit): %m, line %d", __LINE__);
416 * Set the current tty to the PPP discpline
425 error("Couldn't set tty to PPP discipline: %m");
449 * generic_establish_ppp - Turn the fd into a ppp interface.
458 /* Open an instance of /dev/ppp and connect the channel to it */
464 fd = open("/dev/ppp", O_RDWR);
466 error("Couldn't reopen /dev/ppp: %m");
476 warn("Couldn't set /dev/ppp (channel) to nonblock: %m");
483 * Create a new PPP unit.
495 error("Couldn't attach to PPP unit %d: %m", ifunit);
587 * operation, and reconnect the ppp unit to the loopback if in demand
613 * make_ppp_unit - make a new ppp unit for ppp_dev_fd.
621 dbglog("in make_ppp_unit, already had /dev/ppp open?");
624 ppp_dev_fd = open("/dev/ppp", O_RDWR);
626 fatal("Couldn't open /dev/ppp: %m");
630 warn("Couldn't set /dev/ppp to nonblock: %m");
635 warn("Couldn't allocate PPP unit %d as it is already in use", req_unit);
640 error("Couldn't create new ppp unit: %m");
663 fatal("Couldn't attach to PPP unit %d: %m", ifunit);
668 * make_new_bundle - create a new PPP unit (i.e. a bundle)
679 /* make us a ppp unit */
688 * bundle_attach - attach our link to a given PPP unit.
698 master_fd = open("/dev/ppp", O_RDWR);
700 fatal("Couldn't open /dev/ppp: %m");
1010 * output - Output PPP packet.
1081 * read_packet - get a PPP packet from the serial device.
1109 error("read /dev/ppp: %m");
1124 * get_loop_output - get outgoing packets from the ppp device,
1155 * netif_set_mtu - set the MTU on the PPP network interface.
1171 * netif_get_mtu - get the MTU on the PPP network interface.
1191 * the ppp interface.
1231 * the ppp interface.
1251 error("Couldn't set MRU in generic PPP layer: %m");
1307 warn("kernel does not support PPP filtering");
1350 error("Couldn't get PPP statistics: %m");
1958 * Procedure to determine if the PPP line discipline is registered.
1970 * We used to open the serial device and set it to the ppp line
1971 * discipline here, in order to create a ppp unit. But that is
1977 no_ppp_msg = "Couldn't determine if PPP is supported (no free ptys)";
1982 * Try to put the device into the PPP discipline.
1985 error("ioctl(TIOCSETD(PPP)): %m (line %d)", __LINE__);
1996 * ppp_available - check whether the system has any ppp interfaces
2009 "This system lacks kernel support for PPP. This could be because\n"
2010 "the PPP kernel module could not be loaded, or because PPP was not\n"
2011 "included in the kernel configuration. If PPP was included as a\n"
2012 "module, try `/sbin/modprobe -v ppp'. If that fails, check that\n"
2013 "ppp.o exists in /lib/modules/`uname -r`/net.\n"
2014 "See README.linux file in the ppp distribution for more details.\n";
2022 fd = open("/dev/ppp", O_RDWR);
2026 if (mknod("/dev/ppp", S_IFCHR | S_IRUSR | S_IWUSR,
2028 fd = open("/dev/ppp", O_RDWR);
2030 info("Created /dev/ppp device node");
2032 unlink("/dev/ppp"); /* didn't work, undo the mknod */
2034 fd = open("/dev/ppp", O_RDWR);
2051 "pppd is unable to open the /dev/ppp device.\n"
2052 "You need to create the /dev/ppp device node by\n"
2054 " mknod /dev/ppp c 108 0\n";
2069 * current tty into the PPP discipline. If this works then obtain the
2079 * Ensure that the hardware address is for PPP and not something else
2088 * This is the PPP device. Validate the version of the driver at this
2131 "Sorry - PPP driver version %d.%d.%d is out of date\n",
2628 /* allocate ourselves a ppp