summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
...
* If we run out of chat script immediately after a successfully executedbrian1999-06-261-2/+6
| | | | | | | expect-send-expect sequence, finish gracefully, don't core dump. This bug has been there for over a year - I could never reproduce it ! Straw provided by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
* Support `igmp' filters.brian1999-06-236-13/+35
| | | | Mostly submitted by: Timo Geusch <freebsd@sleepycat.ukpeople.net>
* Disable TUNSLMODE when we first open the tun device.brian1999-06-221-2/+10
| | | | Submitted by: Ian West <ian@niw.com.au>
* Don't use the ``next'' redial timer if we have no phone number at all.brian1999-06-181-1/+3
|
* Come up with something useful when someone searches forbrian1999-06-142-4/+6
| | | | ``dynamic IP''.
* Show the correct error if we fail to open a device.brian1999-06-111-7/+17
|
* Describe why a ``magic'' enddisc is not always a good idea.brian1999-06-112-4/+22
|
* Allow reserved substitution strings to be escaped by preceeding thembrian1999-06-101-5/+7
| | | | with a backslash.
* Never bring a link back up after receiving a terminating signal,brian1999-06-101-2/+2
| | | | don't rely on already being in PHASE_DEAD.
* Allow a remote IP and port range specification in thebrian1999-06-104-96/+178
| | | | ``alias port'' command.
* Initialise `mp'.brian1999-06-091-1/+2
|
* Allow our endpoint discriminator to be enabled, disabled, acceptedbrian1999-06-096-20/+56
| | | | | | and denied. This is necessary for some MP implementations that get confused if you accept their endpoint discriminator but reject their MRRU.
* Use the correct pid when substituting PROCESSID.brian1999-06-095-18/+22
| | | | Problem reported by: Amedeo Beck Peccoz <gea@gressoney.it>
* Don't use static variables if we don't have to.brian1999-06-082-8/+11
|
* Don't drop the last character from lines in ppp.secret unless it's '\n'.brian1999-06-081-3/+5
|
* Don't IPCP TLD if we're already doing it. This preventsbrian1999-06-081-19/+23
| | | | | recursion by doing something like ``down'' or ``quit all'' in ppp.linkdown.
* Make the ``load'', ``dial'' and ``open'' commands a big clearer.brian1999-06-082-52/+100
| | | | Requested by: Michael Heitmeier <MICHAEL_HEITMEIER@HP-Germany-om12.om.hp.com>
* Correct the way ppp transfers links on the server side in MPbrian1999-06-0511-35/+137
| | | | | | | | | mode by padding out the ``struct device'' to the maximum device size. Bump the ppp version number to indicate the transfer format change. This should make MP over tty and udp devices functional again.
* Fix some MP sequence number comparison bogons that are tickled bybrian1999-06-031-6/+8
| | | | | | | having different speed links in a bundle. This would manifest itself by having the link occasionally hang, but revive when a new connection is made.... Make ``show mp'' a bit prettier.
* Oops, quieten a compiler warning.brian1999-06-021-1/+2
|
* Mention physical and sync logging in the ``set log''brian1999-06-021-3/+3
| | | | usage message.
* o Alter the mbuf type as it's processed by different layers.brian1999-06-0224-127/+241
| | | | | | | | o Show more information about missing MP fragments in ``show mp''. o Do away with mbuf_Log(). It was showing mbuf stats twice on receipt of LCP/CCP/IPCP packets.... ???!!? o Pre-allocate a bit extra when creating LQR packets to avoid having to allocate another mbuf in mbuf_Prepend().
* Introduce the ``keep-session'' option. Refer to the manbrian1999-06-026-18/+99
| | | | | | page for details. This allows MP over non-tty devices where the original ppp process must not exit (such as sshd-spawned ppp sessions).
* Increase the length of an individual device name to LINE_LEN.brian1999-06-014-11/+15
| | | | | Adjust the base physical device name correctly after a link transfer (allowing correct multilink callbacks).
* Make async/sync/physical/hdlc dumps prettier by showing printablebrian1999-06-011-12/+23
| | | | characters at the end of the line in hexdump style.
* Mention that using MYADDR and HISADDR with ``set filter''brian1999-06-012-2/+34
| | | | | will result in the rules being updated any time MYADDR or HISADDR change.
* Remember if MYADDR or HISADDR is used in a filter add tweak allbrian1999-05-318-43/+110
| | | | filters any time either value changes.
* Don't forget to free the mbufs that get processed bybrian1999-05-281-1/+2
| | | | | mp_Assemble(). Leak spotted by: louqi
* Handle unterminated quoted strings without dup'ing the last characterbrian1999-05-271-3/+3
| | | | with an out-by-one-memcpy.
* Add some comments, optimise out a few strlen()s andbrian1999-05-271-16/+23
| | | | remove a few extraneous assignments.
* Call tty_Offline() from tty_Cooked() and tty_Free(), just inbrian1999-05-271-1/+4
| | | | | case ppp is abending and hasn't called physical_Offline() already.
* Move the code for tweaking interface flags into one function.brian1999-05-273-64/+62
|
* Correct the ``ignoring sync/async'' warnings so that they showbrian1999-05-246-34/+30
| | | | | | up with the correct device type. Reassign the correct tcpdevice or execdevice after transfering a link in MP server mode.
* Don't warn about ``!'' lines being unindented commands in ppp.conf.brian1999-05-241-5/+7
|
* Move the tty locking stuff back out to physical.c sobrian1999-05-182-152/+156
| | | | | | that we lock the device *before* we open it. We still open the device only once - and then ask all our handlers if they know how to handle it.
* Mention ``show layers''brian1999-05-162-2/+6
|
* Initialise ttydevice::Timerbrian1999-05-161-1/+2
|
* Be more non-crypto friendly at make release time.phk1999-05-151-2/+2
|
* Add ``show layers'' to see the protocol layering for a link.brian1999-05-153-4/+24
|
* Handle LCP echo reqs properly again (broken with thebrian1999-05-142-25/+24
| | | | layering changes).
* Ensure that we're not going to overflow our ``struct tun''brian1999-05-141-3/+10
| | | | | when we mbuf_Read() into it. Add the link name to a few diagnostics.
* Initialise the struct device part of struct ttydevice.brian1999-05-132-73/+73
|
* Fix a bum pointer dereference and make some variablebrian1999-05-131-46/+39
| | | | | names more consistent. Stack trace supplied by: Joe Clarke <jclarke@cisco.com>
* Ignore repeated signals sent to the parent in backgroundbrian1999-05-131-1/+2
| | | | mode.
* Adjust our first timer delta according to the returnbrian1999-05-121-5/+12
| | | | | from getitimer() so that times are correct for ``show timer''.
* Oops - hook the sync push diagnostics correctly.brian1999-05-121-3/+3
|
* Allow ``host:port/udp'' devices and support ``host:port/tcp'' asbrian1999-05-1227-307/+832
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | being the same as the previous (still supported) ``host:port'' syntax for tcp socket devices. A udp device uses synchronous ppp rather than async, and avoids the double-retransmit overhead that comes with ppp over tcp (it's usually a bad idea to transport IP over a reliable transport that itself is using an unreliable transport). PPP over UDP provides througput of ** 1.5Mb per second ** with all compression disabled, maxing out a PPro/200 when running ppp twice, back-to-back. This proves that PPPoE is plausable in userland.... This change adds a few more handler functions to struct device and allows derivations of struct device (which may contain their own data etc) to pass themselves through the unix domain socket for MP. ** At last **, struct physical has lost all the tty crud ! iov2physical() is now smart enough to restore the correct stack of layers so that MP servers will work again. The version number has bumped as our MP link transfer contents have changed (they now may contain a `struct device'). Don't extract the protocol twice in MP mode (resulting in protocol rejects for every MP packet). This was broken with my original layering changes. Add ``Physical'' and ``Sync'' log levels for logging the relevent raw packets and add protocol-tracking LogDEBUG stuff in various LayerPush & LayerPull functions. Assign our physical device name for incoming tcp connections by calling getpeername(). Assign our physical device name for incoming udp connections from the address retrieved by the first recvfrom().
* Revert to the previous behaviour of only doing a utmpbrian1999-05-091-2/+2
| | | | login if we're -direct on a tty device.
* Deal with the fact that as we now mbuf_Read the fsmbrian1999-05-0915-96/+98
| | | | | | | | | header in fsm_Input() we often end up with a NULL mbuf. Deal with a possible NULL mbuf being passed into mbuf_Prepend(). Adjust some spacing to make things more consistent.
* o Redesign the layering mechanism and make the aliasing code part ofbrian1999-05-0877-2275/+3369
| | | | | | | | | | | | | | | | | | | | | the layering. We now ``stack'' layers as soon as we open the device (when we figure out what we're dealing with). A static set of `dispatch' routines are also declared for dealing with incoming packets after they've been `pulled' up through the stacked layers. Physical devices are now assigned handlers based on the device type when they're opened. For the moment there are three device types; ttys, execs and tcps. o Increment version number to 2.2 o Make an entry in [uw]tmp for non-tty -direct invocations (after pap/chap authentication). o Make throughput counters quad_t's o Account for the absolute number of mbuf malloc()s and free()s in ``show mem''. o ``show modem'' becomes ``show physical''.
OpenPOWER on IntegriCloud