summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Don't mis-interpret sockaddr_in6 structures as sockaddr_in structuresbrian2000-07-201-1/+1
| | | | when purging routes.
* Describe the new VERSION and COMPILATIONDATE macros and mention that thebrian2000-07-192-8/+30
| | | | ``ident'' command will expand macros.
* Support link identification from rfc1570brian2000-07-1917-22/+176
| | | | Two new commands are available; ``ident'' and ``sendident''.
* Permit multiple ``allow user'' lines in any given sectionbrian2000-07-123-8/+19
| | | | | This avoids line length limits when large numbers of users are allowed access to ppp.
* Correct ``set filter'' usagebrian2000-07-122-4/+8
| | | | Spotted by: sheldonh
* Fix a rather nasty latency problem that occurs with single tcp sessionsbrian2000-07-121-11/+17
| | | | thorough an MP setup with only a single link.
* Allow a ``timeout secs'' filter option to let specific packet typesbrian2000-07-1110-212/+295
| | | | | | | | | | | | effect the idle timer in different ways. Submitted by: Stefan Esser <se@freebsd.org> With adjustments by me to document the option in the man page and to give the same semantics for outgoing traffic as incoming. I made the style more consistent in ip.c - this should really have been done as a separate commit.
* Fix -auto breakage introduced with the last commit.brian2000-07-111-1/+1
|
* o Log the (payload/size) of all packet types, not just TCP packetsbrian2000-07-078-33/+157
| | | | | | | | | | | | | | | | | | | o If the new ``filter-decapsulation'' is enabled, delve into UDP packets that contain 0xff 0x03 as the first two bytes, and if we recognise it as PROTO_IP, decapsulate it for the purpose of filter checking. If we recognise it as PROTO_<anything else> mention this for logging purposes only. This change is aimed at people running PPPoUDP where the UDP traffic is being sent over another PPP link. It's desireable to have the top level link connected all the time, but to have the bottom level link capable of decapsulating the traffic and comparing the payload against the filters, thus allowing ``set filter dial ...'' to work in tunnelled environments. The caveat here is that the top ppp cannot employ any compression layers without making the data unreadable for the bottom ppp. ``disable deflate pred1 vj'' and ``deny deflate pred1 vj'' is suggested.
* kldload ng_ether if we need to.brian2000-06-281-2/+8
|
* Don't assign an MTU based on the peers first-link MRU in MP mode.brian2000-06-241-5/+4
| | | | Use the peers MRRU as we're supposed to.
* Fix a printf-style arg cast (again)brian2000-06-231-1/+2
|
* e.g. -> e.g.,brian2000-06-232-4/+4
| | | | Obtained from: OpenBSD
* Correct PPPoE in multi-link modebrian2000-06-221-1/+1
| | | | Submitted by: jason@OpenBSD.org
* 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
|
OpenPOWER on IntegriCloud