summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the outq error in "show modem".brian1997-11-181-2/+2
|
* DropClient() when read() returns 0 (as it did before).brian1997-11-181-2/+2
|
* Add and use a DropClient() function for closing the diagnostic port.brian1997-11-184-35/+30
| | | | Call DropClient() from Cleanup() too.
* Don't SetLabel() 'till we've done the SelectSystem(). Thisbrian1997-11-171-13/+17
| | | | | | | avoids the situation where we specify label ``x'' on the command line, and label ``x'' has a ``load y'' command embedded in it. When the line comes up, we want to use ``x'' from ppp.linkup, not ``y''.
* Add id strings to tun.[ch].brian1997-11-176-18/+43
| | | | Don't try to open ppp.secret if we're never going to use it.
* Abstract data read from and written to the tun device,brian1997-11-168-55/+130
| | | | | | | | | | | | | | allowing for a possible header on the front of all packets. In OpenBSD, there's a structure containing the address family here. If we're building under OpenBSD, set up the ``flags'' part of struct tuninfo (not there under FreeBSD) so that we config the interface as POINTOPOINT. Prefix prototypes with ``extern'' in os.c for consistency. These changes are cosmetic under FreeBSD, but allow ppp to build & work under OpenBSD (bar the srandomdev() stuff, the inclusing of <net/if_var.h> and some Makefile symantecs).
* Interpret AF_LINK sockaddrs correctly in show/delete route.brian1997-11-151-175/+230
| | | | | | | Print out inteface names rather than numbers, and use the same "find out the names" code in SetIfAddr(). This means that the nasty ioctl(,SIOCGIFCONF,)/realloc loop is now buried :-)
* uucplock is in section 3 not section 8 !brian1997-11-142-8/+6
|
* Update the cftypes arrays according to rfc1700.brian1997-11-144-39/+89
| | | | Log IPCP reqests as IPCP.
* Allow blank lines in config entries (they aren't terminators).brian1997-11-141-2/+2
|
* Use seteuid() instead of setreuid().brian1997-11-131-5/+5
| | | | The setreuid() page says seteuid is better !
* Don't run if ppp.conf is writable.brian1997-11-131-1/+17
|
* Log a warning when a -direct invocation is denied.brian1997-11-131-1/+9
|
* Fix command logging (broken with the "allow" command).brian1997-11-134-23/+33
|
* Null commit: The last commit made some warning messages clearer.brian1997-11-131-1/+1
|
* Don't delete interface routes when we do an LcpDown.brian1997-11-132-6/+6
| | | | They'll get deleted in Cleanup().
* Understand networks in the filter rules. We don'tbrian1997-11-121-3/+5
| | | | insist on x.x.x.0/24 - x.x.x.x/24 is ok too.
* Log whether or not IP packets are bloked due tobrian1997-11-121-5/+7
| | | | a filter.
* Return correct value from "set loopback".brian1997-11-122-5/+15
| | | | | | Output "set ?filter deny host|port" rules correctly with show ?filter. Submitted by: Dave Bodenstab <imdave@mcs.net>
* Don't attempt to dial if "dial label" has specifiedbrian1997-11-122-6/+7
| | | | a restricted label.
* Pass a missing arg to LogPrintf().brian1997-11-121-2/+2
|
* Don't warn that we're waiting for the command to complete ifbrian1997-11-121-3/+2
| | | | we've put it in the background (!bg).
* Don't moan about unexpected config req's when in ST_STOPPING.brian1997-11-111-2/+2
|
* Finish the security improvements:brian1997-11-1115-374/+698
| | | | | | | | | | | | | | | | | | | o Add "allow" command: "allow users a b c" gives access to users a, b and c. "allow modes auto" gives those users access to auto mode only. "allow users *" and "allow modes *" are accepted. No users and all modes are allowed by default. UID 0 can do anything. o Set the current label with the "load" and "dial" commands so that the call to ppp.linkdown makes sense. o Up the verison number. o Don't OR MODE_AUTO for -background and -ddial. o Don't OR MODE_INTER when we get a diagnostic connection. o Allow up to 40 args per line (was 20). o "set ifaddr" only changes the interface in AUTO mode (with other modes, it happens after IPCP negotiation). o Sort command descriptions in the man page. o Support -dedicated mode where we just talk ppp forever (no login etc).
* Fix typo that causes CHAP RESPONSEs to *always*brian1997-11-111-2/+2
| | | | be damned M$ responses if you've got DES.
* Flush the output stream when doing local logging.brian1997-11-111-1/+2
|
* Don't Cleanup() in background mode whenbrian1997-11-091-3/+1
| | | | | we get a "close", the LcpClose() will eventually do it when we get to PHASE_DEAD.
* Initialize VarAltPhone.brian1997-11-091-1/+2
| | | | PR: 4993
* Don't create a diagnostic socket by default.brian1997-11-098-136/+283
| | | | | | Allow a password spec on the "set server" command line. Use SIGUSR2 to close the diagnostic socket. Some man page corrections.
* Don't ask for a password if it's specified as empty.brian1997-11-093-7/+17
|
* Add the "!include" syntax.brian1997-11-094-63/+208
| | | | Return 0 from "show" commands.
* Increase chat script sizes to 512brian1997-11-0912-49/+44
| | | | Requested by: Michael Reifenberger <root@totum.plaut.de>
* Remove the use of $HOME/.ppp.*brian1997-11-092-28/+4
|
* Null commit:brian1997-11-091-1/+1
| | | | The last modification removed the use of $HOME/.ppp.*
* Introduce ID0 logging.brian1997-11-0921-193/+259
| | | | | | | | Stay as the invoking uid as much as possible. Execution as a normal user is still forbidden for now, so these changes are pretty ineffective. The next commit will implement the modifications suggested on -hackers a number of days ago.
* When responding to a CHAP challenge, don't try to usebrian1997-11-091-13/+7
| | | | | | | | ppp.secret to get a key value based on the peers name, then send the value of AuthName with the encrypted result. This is *way* too confusing. Instead, always use AuthName and AuthKey as the documentation says.
* Don't include RTA_GATEWAY in rtm_addrs unless it's specified.brian1997-11-091-2/+3
|
* Typo police.brian1997-11-082-4/+4
|
* Don't pass global vars as args.brian1997-11-0810-65/+65
| | | | Remove local/global conflicts.
* o Spelling police.brian1997-11-062-324/+522
| | | | | | o Emphasize ``PPP'' o x-ref other programs o Some minor clarifications
* Introduce [local] to "set log [local] ...". This spitsbrian1997-11-048-70/+191
| | | | | logging out to the screen in terminal mode - should be good for installation problem diagnosis.
* o Bump version to 1.3 to reflect major changesbrian1997-10-2911-93/+97
| | | | | | | | | | | | o Report modem connect time properly o Report bytes in/out over physical media o Fix phases (TERMINATE is *higher than* DEAD) o Do a LayerFinish from LcpDown o Bring down IPCP & CCP when we enter PHASE_TERMINATE o Give a new prompt when we go to PHASE_DEAD o Stop the modem timer properly when idle o Treat sig 15 like an exiting carrier loss o Log (DEBUG) offline & online transitions
* Cosmetic:brian1997-10-2617-36/+46
| | | | Move prototypes into the correct headers.
* Cosmetic (no functional changes):brian1997-10-2674-1295/+1238
| | | | | | | | | | | | | | | o Add missing $Id$s o Move extern decls from .c -> .h files o Staticize o Remove #includes from .h files o style(9)ify includes o bcopy -> memcpy bzero -> memset bcmp -> memcmp index -> strchr rindex -> strrchr o Move timeout.h -> timer.h (making it consistent w/ timer.c) o Add -Wmissing-prototypes
* sleep => nointr_sleepbrian1997-10-246-22/+20
| | | | | | usleep => nointr_usleep (not just a #define) Already done by: ache
* Restore back non-interruptable sleep/usleep just redefine them to notache1997-10-232-2/+72
| | | | mix with standard library functions
* Remove private sleep/usleep hacksache1997-10-231-63/+1
|
* Fix various filter problemsbrian1997-10-231-11/+12
| | | | | PR: 4727 Submitted by: Chiharu Shibata <chi@bd.mbn.or.jp>
* Fix HDLC logging (actually LogDumpBp()). It was onlybrian1997-10-221-2/+27
| | | | outputting the first mbuf in the chain.
* Ask for VJ slot id compression by default.brian1997-10-171-2/+2
|
OpenPOWER on IntegriCloud