summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Remove ``nat pptp'' as this is now done transparently by libalias.brian2000-06-206-74/+1
|
* Allow padding in LQR ECHO requestsbrian2000-06-201-2/+3
| | | | Problem found by: Tomaz Borstnar <tomaz.borstnar@over.net>
* Don't mis-match interface names in iface_Create()brian2000-06-191-2/+3
| | | | Submitted by: Adrian Penisoara <ady@freebsd.ady.ro>
* Fix a printf-style format errorbrian2000-06-181-1/+1
|
* A few more hard-sentence breaks.brian2000-06-132-22/+28
|
* Hard sentence breaks and trailing space tidy-upsbrian2000-06-112-1054/+1708
| | | | Obtained from: OpenBSD
* Don't oan about padding charactersbrian2000-06-111-2/+0
|
* Add ``set ifqueue'' to control the size of the outgoing packetbrian2000-06-116-2/+57
| | | | | | | queue. Doing ``set ifqueue 0'' and ``set urgent none'' will allow full use of luigi's WF2Q code. Requested by: luigi
* Allow ``set urgent none'' to disable all urgent ports and IPTOS_LOWDELAYbrian2000-06-086-5/+30
| | | | | | prioritisation. Requested by: luigi
* Use mp_CheckAutoloadTimer() rather than mp_StopAutoloadTimer()brian2000-05-311-2/+2
| | | | | | | when opening or closing an auto link due to the autoload setting. Spotted by: David Hedley <david@inty.co.uk>
* Don't use the umask to chmod local domain server sockets, usebrian2000-05-311-1/+1
| | | | the mask
* If the fsm header reports a length greater than the packet size,brian2000-05-261-1/+8
| | | | | drop the packet rather than just whinging about it in the log. If the fsm header has a smaller length, continue to whinge.
* Remove an unused variablebrian2000-05-261-1/+1
|
* When we do a ``dial'' or ``open'' from DATALINK_READY, go tobrian2000-05-262-7/+8
| | | | | | | | | | DATALINK_CARRIER and turn off scripting. This should fix instances where ``term'' is used followed by ~. and then ``dial''/``open'' (it currently just sits there looking at you). Reported by: Tim Vanderhoek <vanderh@ecf.utoronto.ca>
* Fix a topy (if (expr); command;)brian2000-05-251-1/+1
| | | | Submitted by: Renaud Waldura <renaud@guppy.evolunet.com>
* The name /var/log/alias.log is *not* likely to change in the nearbrian2000-05-242-2/+0
| | | | future...
* Mention what ``enable proxy'' actually doesbrian2000-05-242-2/+6
|
* Honour ``set speed sync'' and ``set device !program'' whenbrian2000-05-241-13/+32
| | | | | | | | | used together by creating a SOCK_DGRAM socketpair() between the processes. Be polite when closing !program links and send a HUP to the process. This makes ssh tunnels over unreliable media (such as via httptunnel) reconnect properly.
* Mention it in the log file when we HUP a process thatbrian2000-05-241-0/+2
| | | | controls a link.
* Don't attempt to fputs(NULL, fp) when ``enable dns'' is given andbrian2000-05-241-2/+3
| | | | | there's no resolv.conf. Use a umask of 022 when creating resolv.conf, not 0644 !
* Always pass packets through libalias when NAT is enabled.brian2000-05-231-14/+2
| | | | | Submitted by: luoqi Forgotten by: me
* Return -2 when tcp_OpenConnection() fails so that ppp doesn'tbrian2000-05-221-4/+4
| | | | report that the device name is of an invalid format.
* Be more verbose when a second link doesn't match the first because thebrian2000-05-221-0/+6
| | | | peer enddisc/authname is different.
* Fix a typobrian2000-05-111-1/+1
|
* Mention that the default is to let external traffic route tobrian2000-05-113-11/+19
| | | | | | the internal network when NAT is enabled. Allow ``set target MYADDR'' to stop packets at the gateway.
* Correct a bad bug in m_prepend()brian2000-05-071-3/+5
| | | | Submitted by: luoqi
* 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
OpenPOWER on IntegriCloud