summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
1998-01-06Correct the return value of ReportProtStatus() ("show proto").brian
Submitted by: Dave Bodenstab <imdave@mcs.net>
1998-01-05o Allow the use of HISADDR as the first arg to "add".brian
o Allow a forth argument in ppp.secret, specifying a new label. This gives control over which section of ppp.link{up,down} is used based on the authenticated user. o Support random address ranges in ppp.secret (not just in ppp.conf). o Add a AUTHENTICATING INCOMING CONNECTIONS section to the man page. o Add a bit more about DEFLATE in the man page. o Fix the incorrect "you must specify a password in interactive mode" bit of the manual. o Space things in the man page consistently. o Be more precice about where you can use MYADDR, HISADDR and INTERFACE in the "add" command documentation.
1998-01-04Make it clear that using "add ...." in ppp.conf whenbrian
not in -auto mode isn't a good idea, and that the add should be done in ppp.linkup instead. Change "add 0 0 HISADDR" to "add default HISADDR". It's more intuitive.
1998-01-04Don't scribble on the stack if our input packet isbrian
bigger than our MRU. Moan and drop the packet instead.
1998-01-04Initialize CcpInfo protocols to -1 (none, not OUI).brian
Don't Call Term() for an algorithm that hasn't been Init()d.
1998-01-03more oflows; we should just delete this thingTheo de Raadt
1997-12-30Allow "set device" to close the open modem if we're inbrian
interactive mode. Use `netfd' in fcntl() and tc[gs]etattr() calls rather than the hard coded descriptor 0. Use _FILENO constants from unistd.h This un-breaks things after my recent `close(0)' in interactive mode. Close STDIN_FILENO, and open _PATH_TTY O_RDONLY as `netfd'. This has the effect of allowing `show route' to output more than about a page of data (on FreeBSD, not OpenBSD....). I have no idea why, except that it was a direct consequence of the tcsetattr() in TtyCommandMode(). My previous fix (closing descriptor 0) `fixed' this because all calls to tcsetattr() failed :-(
1997-12-30Typo in error message.brian
1997-12-30Use inet_aton() before gethostbyname()brian
Suggested by: Christian Sandberg <christian@yes.no> Eivind Eklund <perhaps@yes.no>
1997-12-30Allow "add! dst mask gw" (note the ``!'') to do anbrian
RTM_CHANGE if the RTM_ADD fails with an EEXIST. Allow "delete! dst" (note the ``!'') to silently fail if the RTM_DELETE fails with an ESRCH. Also, make the ESRCH and EEXIST error conditions more understandable to the casual observer.
1997-12-29Don't complain that someone's changed the clock unless the timebrian
after a select() interrupt is more than 1 second past what should have been the end time. We may just be running on an over-burdened machine.
1997-12-29Show how much time is left before timing out in thebrian
`show timeout' output. Remove ipIdleSecs variable - it's not used.
1997-12-29sysctl ddb.panic_ddb; felix@mamba.pond.sub.orgTheo de Raadt
1997-12-28Don't expect select() to adjust the passed time when it'sbrian
interrupted with a SIGALRM. In fact, select() sets the passed time to zero, making the previous implementation terminate always after 1/10th of a second ! Also, deal with someone changing the clock while we're sleeping (and restart the whole sleep). Dangers pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-28Initialize mbuf::pnext.brian
Complain to LogERROR if we have internal inconsistency (not LogDEBUG).
1997-12-28If a packet causes a dial, continue to test whether it'sbrian
blocked in the output filter. If so, proceed with the dial despite dropping the packet.
1997-12-28Allow initial sequence numbers less than what we're expecting.brian
When CCP is originally negotiated, the only thing we can be sure about is that we've started adding data to the inflate dictionary either before or at the same time as the peer. This is ok, 'cos DEFLATE is a `sliding window' compressor.
1997-12-27Write to the routing socket as uid 0. It's not good enoughbrian
to just open it as uid 0 under OpenBSD.
1997-12-27Show who closes the diagnostic connection.brian
Show the IP range (if specified) in "show ipcp". Close unused descriptors 0 and 2 in interactive mode. Pass (size_t *) rather than (int *) to sysctl().
1997-12-27Remove bogus timeout code in Receive().brian
Don't read(fd, buffer, 0) and think ppp has closed the connection when `buffer' is full, instead, flush most of buffer to the terminal and read() for a reasonable length. This fixes "show route" when there's more than 2k of routing output.
1997-12-27Allow (and document) execution of commands from withinbrian
our chat script. You can now even run chat(8) - see ppp.conf.sample.
1997-12-24Correct copyright.brian
Requested by: Eivind Eklund <perhaps@yes.no>
1997-12-24Cosmetic (style):brian
sizeof(var) -> sizeof var sizeof type -> sizeof(type) Suggested by: J Wunsch <j@uriah.heep.sax.de>
1997-12-24Use sizeof cftypes128 for NCFTYPES128 macro, not sizeof cftypes !brian
Lucky that sizeof cftypes < sizeof cftypes128
1997-12-23make it more obvious why pmap_set syslogs happenTheo de Raadt
1997-12-23strncpy(x,y,sizeof(x)) --> strncpy(x,y,sizeof(x)-1)brian
Suggested by: Philippe Charnier <charnier@lirmm.fr> Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-22handle timing normally except when clock jumps between 1 and 3 hours. If itTheo de Raadt
jumps, attempt as best as possible to gaurantee that jobs DO run, but only run ONCE; patch by thompson@.tgsoft.com
1997-12-22Don't forget to ntohs(sin.sin_port) (DUH!)brian
1997-12-21Add (BSD) copyright headersbrian
1997-12-21Cosmetic: Test for comment lines after the lenght has been established.brian
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-21Allow multiple (comma seperated) devices on the "set device" line.brian
Submitted by: Derek Inksetter <derek@saidev.com>
1997-12-21Mention that leading whitespace is ignored when identifying comments.brian
1997-12-21Zero struct sockaddr_??s before filling them in.brian
Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-21Index: systems.cbrian
=================================================================== RCS file: /home/ncvs/src/usr.sbin/ppp/systems.c,v retrieving revision 1.31 diff -u -r1.31 systems.c --- systems.c 1997/12/17 21:22:01 1.31 +++ systems.c 1997/12/21 01:35:58 @@ -288,6 +288,8 @@ if (issep(*cp)) { n = strspn(cp, " \t"); cp += n; + if (*cp == '#') + continue; len = strlen(cp); if (!len) continue;
1997-12-21cleanTheo de Raadt
1997-12-21Correct the "how to find out if the line is up" example.brian
1997-12-21prettyTheo de Raadt
1997-12-20do not override other ppp manpageTheo de Raadt
1997-12-19Reset our "ifaddr" to zero if the "set ifaddr" fails inbrian
-auto mode. This makes ppp correctly exit if you kick it off twice in auto mode with the same label (read: interface).
1997-12-19If the peer asks for IP 0.0.0.0, choose an IP ourselvesbrian
without looking for it in our IP list (and if found, trying to ifconfig it!).
1997-12-18Replacebrian
strcpy(a, b); /* a and b are the same size */ with strncpy(a, b, sizeof(a)); a[sizeof(a)-1] = '\0'; Making the code `correct at a glance'. Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-18"No reply from ppp" -> "Connection closed".brian
"No reply" sounds like the message didn't get through (for example when you `pppctl xxxx quit all'.
1997-12-18Don't log the actual password when command-loggingbrian
"passwd xxxx".
1997-12-17Don't depend on a u_long being 32 bits.brian
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17char filename[200] => char filename[MAXPATHLEN]brian
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17Log the source of client connections to the diagnostic port.brian
Disallow connections from port numbers <1024 as low port numbers can only really mean trouble (ftp bounces etc.). Discussed at length with: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17Remove useless comparison.brian
1997-12-17If we've got a descriptor table that's bigger than anbrian
fd_set, make sure that all descriptors >2 are closed when we start - otherwise we're asking for a dump in FD_SET(). Problem pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-17o Log ******** instead of the actual password for "set authkey"brian
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)
1997-12-17do not overflow fd_set. i _pray_ I got this right...Theo de Raadt