summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/systems.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Cosmetic (no functional changes):brian1997-10-261-8/+20
| | | | | | | | | | | | | | | 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
* Install as group ``network''brian1997-09-041-2/+3
| | | | | | | | | | | 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"
* Cosmetic: Make LogPrintf() calls consistent.brian1997-08-311-2/+2
|
* Make the code format more in line with style(9).brian1997-08-251-29/+19
| | | | | Update loadalias to use the new libalias api. Update to version 1.1.
* Add "set server" to control the server socket.brian1997-06-251-1/+7
| | | | | | | | | | Catch SIGUSR1 to re-init listening socket. Document signal behaviour. Add missing '\n's to LogPrintf(LogWARN,...) Main() returns int not void. AF_LOCAL ideal suggested a long time ago by: joerg
* Overhaul ppp:brian1997-06-091-23/+17
| | | | | | | | | | | | | | | | | | | | | | | | | o Use syslog o Remove references to stdout/stderr (incl perror()) o Introduce VarTerm - the interactive terminal or zero o Allow "set timeout" to affect current session o Change "set debug" to "set log" o Allow "set log [+|-]flag" o Make MSEXT and PASSWDAUTH stuff the default o Move all #ifdef DEBUG stuff into the code - this shouldn't be too much overhead. It's now controlled with "set log +debug" o Add "set log command, debug, tun, warn, error, alert" o Remove cdefs.h, and assume an ansi compiler. o Improve all diagnostic output o Don't trap SIGSEGV o SIGHUP now terminates again (log files are controlled by syslog) o Call CloseModem() when changing devices o Fix parsing of third arg of "delete" I think this fixes the "magic is same" problems that some people have been experiencing. The man page is being rewritten. It'll follow soon.
* De-couple ppp from libalias. If libalias isn't there, thebrian1997-05-261-1/+8
| | | | | | | | | alias commands simply won't work. Only root may specify the location of the alias lib (otherwise, it's hard-coded). Make logprintf silently fail if LogOpen hasn't been called. Suggested by: eivind
* Tidy up the code - bounds checking, returnbrian1997-05-101-13/+33
| | | | | | value checking etc. Submitted by: eivind
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Avoid some buffer overrun problems.pst1996-12-151-5/+5
|
* 1) Add multi-phone dialing/redialing, several phones separated by ':'ache1996-03-081-1/+3
| | | | | | | | | | 2) Improve on-line help subsystem 3) Make 'term' mode works even carrier dropped (old code close line forever here) 4) Make 'term' mode 8bit clean. 5) Improve manual page 6) #ifdef DEBUG diagnostic about missing optional files. 7) Don't put interactive dialing info to logfile
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Remove FreeBSD-specific setre*() cheat, we have working thing nowache1995-04-291-15/+1
|
* New user Process PPP based on iij-ppp0.94beta2.amurai1995-02-261-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Supporting SYNC SIO device (But need a device driver) - add "set speed sync" o Fixing bug for Predictor-1 function. o Add new parameter that re-sent interval for set timeout commands. o Improving RTT (Round Trip Time) and reducing processor time. - Previous Timer service was using polling, and now using SIGALRM ;-) - A 0.94beta2 will not work correctly.... -- Follows are additinal feature not including 0.94beta2 o Support Proxy ARP - add "enable/disable proxy" commands o Marging common routine in CHAP/PAP. o Enhancing LCP/IPCP log information. o Support local Authfication connection on port 300x and tty. - You can set up pair of your "hostname -s" and password in ppp.secret. if either ppp.secret file nor your hostname line don't exist, It will notify a message and working as same as previous version.(Backword compatibility) - If you did set up them, It's allow connection but nothing to do except help and passwd command. - add "passwd yourpasswd" commands o Support afilter - keep Alive filter that a packet can send/receiving according to ifilter/ofilter but doesn't count it as preventing idle timer expires. - Same syntax of other filters. o Fixing bugs reported by current user for previous one. Thanks !! Reviewed by: Atsushi Murai (amurai@spec.co.jp)
* PPP does not find config files (Wrong path name not a /etc/ppp)amurai1995-02-021-3/+4
| | | | Submitted by: Michael Reifenberger <root@rz-wb.fh-sw.de>
* (no commit message)amurai1995-01-311-0/+215
OpenPOWER on IntegriCloud