summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/systems.c
Commit message (Collapse)AuthorAgeFilesLines
* 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