summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Don't allow accept/deny when it's not appropriate.brian1997-09-228-57/+155
| | | | | Log PAP/CHAP users in utmp & wtmp, allowing it to be avoided with "disable utmp"
* Don't pause for one second before starting LCPbrian1997-09-221-4/+12
| | | | | | | | | | | negotiation. Instead, incrementally pause after receiving LCPs with the same magic. We can now suffer a server that waits more than 1 second before responding. Pauses greater than a second get hopelessly confusing as when the server eventually starts, it sees a flood of Config Requests followed by config NAKs and changes of magic. This causes the server to change its magic over and over.....
* Use the correct device name in "show modem"brian1997-09-221-8/+2
|
* Correct the way the uucp lock file and the ttyXX.if lockbrian1997-09-224-61/+108
| | | | | | | file get created. We don't create lock files over non-tty connections, but we *do* create lock files in -direct mode. This leaves us capable of adding utmp/wtmp support for successful pap & chap logins (coming soon).
* Sleep for a second before sending the first LCPbrian1997-09-211-1/+3
| | | | | | | config request. This stops us from squirting stuff down a line that still has ECHO turned on because the peer hasn't had a chance to start yet. Lead to the cause by: Greg Lehey <grog@lemis.com>
* It turns out that the following:brian1997-09-212-17/+5
| | | | | | | | | | | | close(1); close(2); x = open(ctermid(NULL), O_RDWR|O_NONBLOCK); close(0) on a tty causes select() to return an exception for descriptor x ! This is the case in RELENG_2_2, but not in 2.2.2. I'm not sure why. Instead of doing the x=open() and close(0), we just do x=0 now. Problem pointed out by: Greg Lehey <grog@lemis.com> Tomi Vainio <tomppa@fidata.fi>
* Typo policebrian1997-09-212-6/+6
| | | | Submitted by: Mark Cammidge <mark@gmtunx.ee.uct.ac.za>
* Add a pppctl(8) xref.brian1997-09-212-4/+6
| | | | Suggested by: joerg
* Don't close(1) in direct mode and then proceed tobrian1997-09-182-5/+6
| | | | | | | | | isatty(1) ! Keep 0 open for this till the modem's been set up by either dup()ing 0 or by opening ctermid(NULL) (if isatty(0)). Discussed problem with: Tomi Vainio <tomppa@fidata.fi> Made it finally dawn on me: Angelo Turetta <ATuretta@stylo.it>
* Support CHAP using MD4brian1997-09-176-15/+63
| | | | Suggested by: jordan
* o Fix two unlikely descriptor leaks.brian1997-09-164-41/+73
| | | | | | | | | o Output the correct device for "show modem" while in -direct mode. o Cosmetic: Moan a bit more when we can't open the [modem] device. o Call OpenModem() in a more "natural" way. o Add some LogDEBUG in OpenModem().
* Get rid of missing-prototype-warningbrian1997-09-101-1/+2
|
* PRED1 => TY_PRED1 (oops)brian1997-09-101-2/+2
|
* o Initialize the PRED1 input queue when webrian1997-09-103-7/+10
| | | | | | | | | | | | receive the ResetAck, NOT when we send the ResetReq (as per the rfc). o SILENTLY ignore CCPs that arrive *before* the network phase (as per the rfc). o Check that we've actually negotiated PRED1 before sending PRED1 output. This bug has been around for a *VERY* long time ! We shouldn't need to explicitly disable PRED1 now :-)
* Cosmetic: Remove unused variables and build on OpenBSD.brian1997-09-107-42/+44
|
* Allow dial to work in non-interactive mode.brian1997-09-091-3/+1
|
* Print errors correctly (don't adjustbrian1997-09-091-2/+2
| | | | argc/argv for commands).
* Don't start an interactive shell from abrian1997-09-091-1/+5
| | | | telnet prompt.
* Correct ppp authentication defaults in interactivebrian1997-09-092-3/+19
| | | | | | | | | mode. We don't want to be forced to type a password here :-( Pointed out by: mouth@ibm.net (John Kelly) While I'm there, don't allow a "set server" in interactive mode.
* Document the use of PAP/CHAP properly.brian1997-09-092-56/+112
|
* Disable LQR by default. It causes too many problemsbrian1997-09-073-7/+7
| | | | | with too many ISPs to be a good default. LQR is still accepted by default.
* Use __libalias_version to derive the name tobrian1997-09-061-1/+2
| | | | pass to dlopen().
* Install as group ``network''brian1997-09-0411-75/+116
| | | | | | | | | | | Insist that uid == 0 for client ppp Disallow client sockets if no password is specified Don't exit on failure to open client socket for listening Allow specification of null local password Use reasonable size (smaller) ``vector''s in auth.c Fix "passwd ..." usage message Insist on "all" as arg to "quit" (if any) Drop client socket connection before Cleanup() when "quit all"
* Bring CCP and IPCP layers down properly when LCPbrian1997-09-034-17/+52
| | | | | comes down. Give a count of bytes sent/received in IPCP log.
* Allow the transition from an idle timeout valuebrian1997-09-035-12/+22
| | | | | | of zero (no timeout) while IPCP is up. Move some prototypes into .h files and re-order some includes.
* Cosmetic: Make LogPrintf() calls consistent.brian1997-08-3114-94/+103
|
* Make ppp owner root.ppp, mode 4550brian1997-08-311-2/+3
| | | | | Suggested by: guido Condoned by: eivind
* Remove use of login_progok()brian1997-08-313-41/+5
| | | | Suggested by: guido
* Use login_progok().brian1997-08-273-46/+17
|
* Check the "prog.deny" login.conf capability andbrian1997-08-263-5/+70
| | | | | refuse to run if "ppp" is in the list. Suggested by: "Daniel O'Callaghan" <danny@panda.hilink.com.au>
* Lose a couple of extraneous backslashes.brian1997-08-251-5/+3
|
* Make the code format more in line with style(9).brian1997-08-2563-4037/+3832
| | | | | Update loadalias to use the new libalias api. Update to version 1.1.
* Phone the number after the ``|'' whether the dialbrian1997-08-233-40/+42
| | | | | | OR login script fails. Catch a small typo in the man page.
* Update version number to 1.02 so that I can tell whatbrian1997-08-211-3/+3
| | | | people are running
* Update doc to use MYADDR in ppp.conf.brian1997-08-212-4/+4
|
* Allow the use of HISADDR & MYADDR in ppp.conf.brian1997-08-211-1/+5
|
* Add "set loopback on|off", defaulting to "on".brian1997-08-216-8/+88
| | | | | | | | | This tells ppp to loopback packets addressed to the ppp interface IP coming *from* the tun device. This means that you can ping the tun interface IP from inside :-)
* Correct online usage message for "set ? stopped"brian1997-08-211-2/+2
|
* Expand the "set stopped" command so that it canbrian1997-08-2012-136/+175
| | | | | | | | idependently time out any of the FSMs. Split LCP logging into LCP, IPCP and CCP logging, and make room in "struct fsm" for the log level that the state machine should use.
* Spelling police.danny1997-08-192-10/+10
|
* Typo fixes.danny1997-08-192-6/+6
|
* Correct the forth arg to "set ifaddr". If specified,brian1997-08-195-56/+132
| | | | | it gives the IP number that should be used for initial IPCP config requests, irrespective of MYADDR.
* Introduce the "bg" command. It's prettybrian1997-08-183-30/+90
| | | | | much the same as "shell", but it's in the background.
* Fix possible buffer overrun while "expect"ingbrian1997-08-171-6/+7
| | | | something that's "nearly" what it wants.
* Typo policebrian1997-08-172-4/+4
|
* Allow the use of a "stopped" timeout via thebrian1997-08-176-15/+117
| | | | | | | | | | | "set stopped" directive. If the timeout occurs it will cause a "Down" event, hanging up the line if it's still up. This *isn't* part of the FSM diagram, but I consider it ok as a "higher level implementation specific timeout" as specified in the rfc ;-} Discussed briefly with: joerg
* Allow specification of fallback phone numbers tobrian1997-08-175-25/+65
| | | | | be used only if the dial script fails. PR: 4262
* Use libalias.so.2.3.brian1997-08-111-1/+1
|
* Correct default log file name.brian1997-08-102-4/+4
| | | | | | PR: 4065 Prompted by: Steve Price <sprice@hiwaay.net> Submitted by: sjr1@flash.net
* Use libalias.so.2.2brian1997-08-031-1/+1
|
OpenPOWER on IntegriCloud