summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/systems.c
Commit message (Collapse)AuthorAgeFilesLines
* o Clean up some #includesbrian2002-05-141-1/+0
| | | | | | | | | | | | | | | | | | o Bump version number to 3.0.4 o When talking to a RADIUS server, provide a NAS-Port-Type. When the NAS-Port-Type is Ethernet, provide a NAS-Port value equal to the SESSIONID from the environment in direct mode or the NGM_PPPOE_SESSIONID message in other modes. If no SESSIONID is found, default to the interface index in client mode or zero in server mode. When the NAS-Port-Type is ISDN, set the NAS-Port to the minor number of the physical device (ie, the N in /dev/i4brbchN). This makes it easier for the RADIUS server to identify the client WRT accounting data etc. Prompted by: lsz8425 <lsz8425@mail.cd.hn.cn>
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Convert IIJ copyrights to BSD copyrights.brian2001-06-131-18/+25
| | | | Approved by: Toshiharu OHNO <tohno@sirius.ocn.ne.jp>
* Change _PATH_PPP to PPP_CONFDIR and allow it to be overridden at compile timebrian2001-03-231-3/+3
|
* MAXPATHLEN -> PATH_MAXbrian2001-03-081-1/+1
| | | | | | Don't assume MAXHOSTNAMELEN includes the NUL Correct a diagnostic Use "localhost" in our prompt instead of ""
* Permit multiple ``allow user'' lines in any given sectionbrian2000-07-121-2/+11
| | | | | This avoids line length limits when large numbers of users are allowed access to ppp.
* Plug two file descriptor leaksbrian2000-04-031-2/+6
|
* Don't treat # specially herebrian2000-03-281-6/+0
|
* Understand environment variables in commandsbrian2000-03-141-61/+85
| | | | Submitted by: Mark Knight <markk@knigma.org>
* Correct usages of getuid() and geteuid()brian1999-12-301-2/+2
| | | | Pointed out by: billf
* Don't allowt '#' as a comment when it's embedded in quotes:brian1999-12-271-20/+13
| | | | | | | | set something "xxx yyy # zzz" aaa shouldn't be interpreted as set something "xxx yyy" aaa
* Understand double-quotes anywhere on a command line in the samebrian1999-12-231-1/+1
| | | | | way that a shell does. The previous way ppp did it just didn't make any sense.
* Correct warning about unindented commands when the unindented commandbrian1999-12-231-27/+34
| | | | is actually a new label with a comment at the end of the line.
* Don't munge ``set dial|login|logout|hangup'' arguments beforebrian1999-12-221-1/+1
| | | | ExpandString() has a chance to do its own substitutions.
* Fix my '#'-at-end-of-lines change, spammed by a subsequent commit.brian1999-12-201-3/+10
|
* Use getpwuid()->pw_dir instead of $HOME when expanding ``~''.brian1999-12-201-10/+6
|
* Use getpwuid() instead of getlogin() in ``allow users''.brian1999-12-201-4/+5
|
* Cosmetic: clean up some parenthesis confusionbrian1999-12-201-10/+5
|
* Handle comments at the end of lines.brian1999-12-201-6/+30
|
* Notice and warn about unterminated quoted strings in commands.brian1999-12-201-13/+16
| | | | The entire command is ignored if the syntax is invalid...
* When logging warning messages, there are now three scenarios:brian1999-09-061-1/+10
| | | | | | | | o If a prompt is executing the command, only display the warning to that prompt o If a prompt is executing a ``load'' command, display the warning to all prompts *and* syslog o Otherwise, display the warning to all prompts *and* syslog.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Don't warn about ``!'' lines being unindented commands in ppp.conf.brian1999-05-241-5/+7
|
* Deal with the fact that as we now mbuf_Read the fsmbrian1999-05-091-2/+2
| | | | | | | | | header in fsm_Input() we often end up with a NULL mbuf. Deal with a possible NULL mbuf being passed into mbuf_Prepend(). Adjust some spacing to make things more consistent.
* o Redesign the layering mechanism and make the aliasing code part ofbrian1999-05-081-1/+2
| | | | | | | | | | | | | | | | | | | | | the layering. We now ``stack'' layers as soon as we open the device (when we figure out what we're dealing with). A static set of `dispatch' routines are also declared for dealing with incoming packets after they've been `pulled' up through the stacked layers. Physical devices are now assigned handlers based on the device type when they're opened. For the moment there are three device types; ttys, execs and tcps. o Increment version number to 2.2 o Make an entry in [uw]tmp for non-tty -direct invocations (after pap/chap authentication). o Make throughput counters quad_t's o Account for the absolute number of mbuf malloc()s and free()s in ``show mem''. o ``show modem'' becomes ``show physical''.
* If /etc/ppp/ppp.conf doesn't exist, mention that thebrian1999-03-091-7/+19
| | | | | | configuration file can't be found rather than saying that the label can't be found. Pointed out by: Greg Black <gjb@comkey.com.au>
* Don't allow root to specify non-existent labels onbrian1999-02-021-18/+25
| | | | | | the command line. Revise the error diagnostics so that invalid labels are reported immediately.
* Allow multiple systems (config labels) on the commandbrian1998-10-311-9/+28
| | | | | | line and in the ``load'' & ``dial'' commands. The last label loaded becomes the current label name. Only require a label for -auto mode.
* Warn if we encounter an unindented line that isn'tbrian1998-10-171-2/+7
| | | | terminated with a ``:''.
* Fix a rather nasty use of `static'. This caused a SEGVbrian1998-06-151-5/+5
| | | | | when running ``link * load label'' as we ended up recursing back into command_Interpret after nuking our command arg list.
* Give ``load'' optional context. It's now possible tobrian1998-06-151-8/+9
| | | | | ``link 1,2,3 load label'' for people that want to set up their links in a more mpd-like manner.
* MFMP: Make ppp multilink capable.brian1998-05-211-129/+126
| | | | See the file README.changes, and re-read the man page.
* Remove unused #includes.brian1998-01-211-3/+1
| | | | | | Make various bits static. Remove unused variables. Submitted by: eivind
* Cosmetic (style):brian1997-12-241-3/+3
| | | | | | | sizeof(var) -> sizeof var sizeof type -> sizeof(type) Suggested by: J Wunsch <j@uriah.heep.sax.de>
* Cosmetic: Test for comment lines after the lenght has been established.brian1997-12-211-4/+2
| | | | Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
* Allow leading whitespace before '#' when identifying comments.brian1997-12-211-1/+3
| | | | Submitted by: Dave Bodenstab <imdave@mcs.net>
* char filename[200] => char filename[MAXPATHLEN]brian1997-12-171-2/+2
| | | | Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
* o Log ******** instead of the actual password for "set authkey"brian1997-12-171-3/+3
| | | | | | | | | | | | when command logging is switched on. o Display ******** for the authkey for "show auth" o Document how \P should be used, and document the other chat escapes while I'm there. o Make sure the full command is displayed when a compound command fails - ie, "set novar rubbish" should say "set novar: Invalid command" rather than "novar: Invalid command" Problem pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org> (among others)
* Use LogWARN for command usage messages and unrecognisedbrian1997-12-151-2/+2
| | | | commands, not LogCOMMAND.
* Fix prototypes.brian1997-11-221-18/+18
| | | | | | | | | | | | | | Remove extraneous decls. Add ``const'' to several places. Allow ``make NOALIAS=1'' to remove IP aliasing. Merge with OpenBSD - only the Makefiles vary. We can now survive a compile with -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts (although the Makefile just contains -Wall).
* Allow blank lines in config entries (they aren't terminators).brian1997-11-141-2/+2
|
* Fix command logging (broken with the "allow" command).brian1997-11-131-3/+2
|
* Don't attempt to dial if "dial label" has specifiedbrian1997-11-121-3/+4
| | | | a restricted label.
* Pass a missing arg to LogPrintf().brian1997-11-121-2/+2
|
* Finish the security improvements:brian1997-11-111-13/+102
| | | | | | | | | | | | | | | | | | | 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).
* Add the "!include" syntax.brian1997-11-091-4/+124
| | | | Return 0 from "show" commands.
* Increase chat script sizes to 512brian1997-11-091-2/+2
| | | | Requested by: Michael Reifenberger <root@totum.plaut.de>
* Null commit:brian1997-11-091-1/+1
| | | | The last modification removed the use of $HOME/.ppp.*
* Introduce ID0 logging.brian1997-11-091-94/+7
| | | | | | | | 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.
* Introduce [local] to "set log [local] ...". This spitsbrian1997-11-041-3/+10
| | | | | logging out to the screen in terminal mode - should be good for installation problem diagnosis.
OpenPOWER on IntegriCloud