summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Remove a rogue spacebrian2000-04-131-1/+1
|
* Add a missing ``break''brian2000-04-091-0/+1
|
* When running ppp -background, show comfort messages showingbrian2000-04-076-40/+74
| | | | | | | | when we're redialing/reconnecting. While we're here, log redial, reconnect and phone number announcements to LogCHAT, and reduce some other logging to LogDEBUG.
* I didn't get this right the last time....brian2000-04-061-13/+20
| | | | | | | | | | | | | When an NCP reaches TLF, *ONLY* datalink_Close() links that are in DATALINK_OPEN. When the last link reaches TLD, DOWN all NCPs (as we used to in the links TLF (which was the wrong place anyway)), as the NCPs aren't now going to datalink_Close() us unexpectedly, we get to continue doing what we were told to do in the first place. The result: When we lose a link, the IPCP layer goes down and we actually call the stuff in ppp.linkdown !
* Pass me the pointy hat.gj2000-04-041-2/+8
| | | | | | | | | | | | | It was not a good idea to remove csu_header from struct cspace, it had ramifications which I didn't notice. Restore src/usr.sbin/ppp/slcompress.h to the way it was, since MAX_HDR was already defined as 128 there and it's a user program anyway. In sys/net/slcompress.h make MAX_HDR 128 intead of MLEN to avoid bloat. My apologies for any inconvenience.
* Plug two file descriptor leaksbrian2000-04-031-2/+6
|
* Nuke csu_hdr from struct cspace. csu_hdr is not used anywhere in thegj2000-04-031-7/+1
| | | | | | | | | | | | tree. This considerably reduces unnecessary bloat in struct slcompress. I'm running with this change right now and have seen no negative side-effects. On my sytem this reduced kernel BSS by about 25KB. Submitted by: bde Approved by: brian for user-ppp
* Allow authname to be changed at any phase, just emit a warningbrian2000-03-311-4/+4
| | | | if it's not DEAD or ESTABLISH
* Use INADDR_NONE with PacketAliasSetTarget() if no args are given tobrian2000-03-313-1/+11
| | | | | ``nat target'', and suggest the use of ``nat target default'' as an interesting possibility.
* Undo the damage done to this file in my last commitbrian2000-03-311-1/+1
|
* Add the ``nat target'' command.brian2000-03-316-16/+52
|
* Correct address parsingbrian2000-03-301-1/+1
| | | | Pointed out by: Maxim Sobolev <sobomax@altavista.net>
* Log information about packets being dropped (probably due tobrian2000-03-292-5/+19
| | | | ``nat deny_incoming yes'') by libalias.
* Allow the use of hostnames instead of (and as well as) IPbrian2000-03-291-4/+5
| | | | | | | | numbers in all commands. If people use hostnames and have dodgy resolvers or try to resolve the hostname before the link is up, they get what they deserve.... Requested by: ru
* Mention the value of the unexpected return code in nat_LayerPull()brian2000-03-291-1/+1
|
* don't treat # specially if PARSE_NOHASH is passedbrian2000-03-281-2/+2
|
* Don't treat # specially herebrian2000-03-281-6/+0
|
* Correct the parent notification diagnostic emitted from the childbrian2000-03-221-1/+2
| | | | process in -background mode (it should report failure if appropriate).
* If a links LCP FSM has reached TLF and it's the last link,brian2000-03-221-12/+5
| | | | | | | | | | | | | don't bother to re-initialise the NCPs. Instead wait for bundle_LinkClosed() to be called - IFF it actually is called. By initialising the NCPs at this point, ppp was recursing back into the fsm_Down() routing for the link, and losing track of the reason that the link was being brought down. The end result was that ``set reconnect'' would never do anything. Patiently pointed out by: ru
* Don't bother setting the dial timer if we've closed abrian2000-03-221-1/+2
| | | | | background/foreground/direct and zero'd the redial/reconnect counts.
* Do some vfork() trickery so that the parent can determinebrian2000-03-221-7/+37
| | | | | | | | | | | | | | | if the childs exec() has succeeded or failed by taking advantage of the fact that both processes share the same memory. FWIW: I tried to implement this by doing a pipe(), setting the write desciptors close-on-exec flag in the child and writing errno to the descriptor if the exec() fails. The parent can then ``if (read()) got errno else exec worked''. This didn't work though - the child could write() to fd[1] on exec failure, but the parent got 0 trying to read() from fd[0] ! Is this a bug in execve() ?
* Call bundle_CleanDatalinks() after UpdateSet() in case we'rebrian2000-03-221-0/+1
| | | | | | | | dropping out of background/foreground/direct mode. This avoids either having to wait for the redial timer before exiting or jaming up in select() waiting for something that'll never happen.
* Add some diagnostics to prove that incoming IP fragments arebrian2000-03-191-2/+12
| | | | being dealt with correctly.
* Move a comment to make things a bit more readable.brian2000-03-162-4/+4
| | | | | Suggested by: sheldonh Forgotten by: me
* Increase bit fields to allow for new valuesbrian2000-03-141-2/+2
|
* ppps -> ppp's; suggested by sheldonhbrian2000-03-142-26/+26
| | | | | .Nm ppp -> .Nm; overlooked by me Microsofts -> Microsoft's; OpenBSD
* Understand -DNOINET6brian2000-03-141-0/+4
|
* Understand environment variables in commandsbrian2000-03-145-62/+102
| | | | Submitted by: Mark Knight <markk@knigma.org>
* Add the ``resolv'' command for telling ppp how to deal with resolv.conf.brian2000-03-1411-151/+527
| | | | | You can now ``resolv restore'' in ppp.linkdown ! Add DNS0 and DNS1 macros.
* Refresh the NAT IP pointer after a potential mbuf reallocation. Thisbrian2000-03-141-0/+1
| | | | | caused frequent lock-ups for individual sessions over a NAT'd ppp link when MTU sizes ended up more or less exactly wrong.
* Fix some printf-style argument bugsbrian2000-03-146-17/+20
|
* Fix some typosbrian2000-03-142-8/+8
| | | | Obtained from: OpenBSD
* Adjust whitespacebrian2000-03-142-1/+5
|
* Don't include netinet6/in6.h directly.brian2000-03-141-3/+0
|
* Correct some typos introduced in the descriptor -> fdescriptor change.brian2000-03-147-18/+18
|
* Introduce LOCALNAT and LOCALRAD defines so that the sources can staybrian2000-03-145-13/+22
| | | | | exactly the same in FreeBSD & OpenBSD despite libalias and libradius being local to the ppp sources under OpenBSD.
* Correct UN_SIZE definitionbrian2000-03-141-1/+1
| | | | Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
* Don't ``break'' when we come accross a non-RTM_IFINFO typebrian2000-03-141-1/+1
| | | | | | | entry in the block returned by the NET_RT_IFLIST mib, ``continue'' Broken a few minutes ago by: me
* When ppp can't identify the relevant name, don't use "???", usebrian2000-03-148-98/+126
| | | | <nnn> or <0xxxx> instead.
* Add ``set log dns'' to log DNS QUERY packets.brian2000-03-146-28/+162
| | | | | | | | | | | | | This is invaluable for dial-on-demand connections... In ppp.linkup: set log -dns -tcp/ip and in ppp.linkdown set log +dns +tcp/ip giving a much better account of why the link came up.
* The interface list that comes back from the PF_ROUTE/NET_RT_IFLIST mibbrian2000-03-148-128/+130
| | | | | | is aligned. Teach this to ``show route''. Clean up some of the sockaddr parsing routines.
* Support IP6 addresses in ``show route''brian2000-03-141-12/+88
| | | | | Also, don't try to output routing entries if either the RTA_DST or RTA_GATEWAY sockaddrs aren't present.
* When adjusting timer::rest, round to the closest TICKUNIT usecsbrian2000-03-141-6/+8
| | | | | | | | | | | value. This has minimal impact here, but if ppp ever needs to frequently remove timers before they've timed out, it can badly skew the next item in the timer list without this change. The correct fix would be to store usecs in `rest' rather than TICKUNITs, but the math is easier if we just round...
* When we stop a timer that's the first in the timer list, ensurebrian2000-03-141-4/+14
| | | | | | | that we adjust that timers `rest' value (with the current getitimer() values) before using that to adjust the next items `rest' value. After adjusting that value, restart the timer service so that we've now got the correct setitimer() values.
* To avoid namespace polution in NetBSD:brian2000-03-1423-78/+78
| | | | ``struct descriptor'' -> ``struct fdescriptor''
* Remove the last vestiges of libRSAglue now that it's an empty stub.kris2000-03-111-4/+0
| | | | | | This should fix the buildworld problems some people were seeing. Approved by: jkh
* Buildworld fixes for NO_OPENSSH and NO_OPENSSLkris2000-03-091-1/+1
| | | | Approved by: jkh
* Remove more single-space hard sentence breaks.sheldonh2000-03-022-12/+24
|
* Update DISTRIBUTION for new crypto world ordermarkm2000-02-291-1/+1
|
* Use libcrypto instead of libdes.markm2000-02-242-3/+7
|
OpenPOWER on IntegriCloud