summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
1998-01-21screenblank on amiga? NopeTheo de Raadt
1998-01-21avoid oflow which appears not to matterTheo de Raadt
1998-01-20Allow an optional delay when specifying "set openmode active".brian
The delay defaults to 1 sec (as it always has) unless we've done a ~p in interactive mode or we've actually detected a HDLC frame. This is now cleanly implemented (via async timers) so that it is possible for LCP to come up despite the delay if an LCP REQ is received. This will hopefully solve situations with slow servers or slirp scenarios (where ECHO is left on the port for a second or so before the peer enters packet mode). Also, ~p in interactive mode no longer changes the value of the default openmode delay and -dedicated mode enters packet mode in the right state according to the value of openmode.
1998-01-19dlopen(..., RTLD_NOW) rather than RTLD_LAZY.brian
Pointed out by: John Polstra <jdp@polstra.com>
1998-01-19sys/types.h -> sys/param.hbrian
Pointed out by: Niklas Hallqvist <niklas@petra.appli.se>
1998-01-19Reimplement proxy-arp address stuff using sysctl().brian
1998-01-18Make sure ypinit asks the master server for known maps.Mats O Jansson
Bug reported by both theo and chuck cranor. -moj
1998-01-18Allow "set vj" for changing the default number of slotsbrian
and whether slot compression is requested. Don't show current values with "show ipcp" if IPCP isn't "opened".
1998-01-17ppp-2.3.3 + some -WallTodd C. Miller
1998-01-15yet another typoNiklas Hallqvist
1998-01-15typoNiklas Hallqvist
1998-01-14feed tar the -p option to retain set[ug]id bits, this was dueNiklas Hallqvist
to the fact that GNU tar retatins the bits when run as root, but paxtar does not, and we use the latter.
1998-01-14Free our input mbuf when the FCS is good (oops, memory leak).brian
1998-01-14Lose __libalias_version.brian
We now look for the biggest of libalias.so.2.*
1998-01-12Fix bug in yp_maplist_host. -mojMats O Jansson
1998-01-11Lose <net/if_var.h> (was a FreeBSD brokenness) !brian
1998-01-11Make things work when sizeof(long) != 32 (hopefully)brian
1998-01-11Remember any number of interface names.brian
1998-01-11Remove includes of if_var.h and in_var.hbrian
1998-01-11Allow 6 byte interface names (for >tun99)brian
1998-01-10Pause according to the redial setting when dialing manually.brian
Pointed out by: Berend de Boer <berend@compuserve.com>
1998-01-10Implement Reset{Req,Ack} properly, as per rfc 1962.brian
(I completely mis-read the rfc last time 'round!) This means: o Better CCP/WARN Reset diagnostics. o After we've sent a REQ and before we've received an ACK, we drop incoming compressed data and send another REQ. o Before sending an ACK, re-sequence all pending PRI_NORMAL data in the modem queue so that pending packets won't get to the peer *after* the ResetAck. o Send ACKs with the `identifier' from the REQ frame. o After we've received a correct ACK, duplicate ACKs are ok (and will reset our history). o Incorrect ACKs (not matching the last REQ) are moaned about and dropped. Also, o Calculate the correct FCS after compressing a packet. DEFLATE *may* produce an mbuf with more than a single link in the chain, but HdlcOutput didn't know how to calculate the FCS :-( o Make `struct fsm'::reqid a u_char, not an int. This fix will prevent us from sending id `255' 2,000,000,000 times before wrapping to `0' for another 2,000,000,000 sends :-/ o Bump the version number a little (it should already have been at 1.6). The end result: DEFLATE now works over an unreliable link layer. I can txfr a 1.5Mb kernel over a (rather bad) null-modem cable at an average of 21679 bytes per second using rcp. Repeat after me: Don't test compression using a loopback ppp/tcp setup as we never lose packets and therefore never have to reset!
1998-01-08Zap any addresses on the network side of the `tun' as soonbrian
as we've successfully opened the /dev side.
1998-01-08Fix some problems with xfr of secure maps. Problem reported byMats O Jansson
Eric Rungi <rungus@openface.org> -moj
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>