summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
AgeCommit message (Collapse)Author
1999-06-22Fix the unused REVERSE stuff in the packet aliasing code.brian
1999-06-18Don't use the ``next'' redial timer if we have no phone number at all.brian
1999-06-14Come up with something useful when someone searches forbrian
``dynamic IP''.
1999-06-11Show the correct error if we fail to open a device.brian
1999-06-11Describe why a ``magic'' enddisc is not always a good idea.brian
1999-06-10Allow reserved substitution strings to be escaped by preceeding thembrian
with a backslash.
1999-06-10Never bring a link back up after receiving a terminating signal,brian
don't rely on already being in PHASE_DEAD.
1999-06-10Allow a remote IP and port range specification in thebrian
``alias port'' command.
1999-06-09Initialise `mp'.brian
1999-06-09Allow our endpoint discriminator to be enabled, disabled, acceptedbrian
and denied. This is necessary for some MP implementations that get confused if you accept their endpoint discriminator but reject their MRRU.
1999-06-09Use the correct pid when substituting PROCESSID.brian
Problem reported by: Amedeo Beck Peccoz <gea@gressoney.it>
1999-06-08Don't use static variables if we don't have to.brian
1999-06-08Don't drop the last character from lines in ppp.secret unless it's '\n'.brian
1999-06-08Don't IPCP TLD if we're already doing it. This preventsbrian
recursion by doing something like ``down'' or ``quit all'' in ppp.linkdown.
1999-06-08Make the ``load'', ``dial'' and ``open'' commands a big clearer.brian
Requested by: Michael Heitmeier <MICHAEL_HEITMEIER@HP-Germany-om12.om.hp.com>
1999-06-05remove trailing whitespace, some Nm cleanupAaron Campbell
1999-06-05Correct the way ppp transfers links on the server side in MPbrian
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.
1999-06-05capitalize the acronym IDAaron Campbell
1999-06-03Fix some MP sequence number comparison bogons that are tickled bybrian
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.
1999-06-02Oops, quieten a compiler warning.brian
1999-06-02Mention physical and sync logging in the ``set log''brian
usage message.
1999-06-02o Alter the mbuf type as it's processed by different layers.brian
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().
1999-06-02Introduce the ``keep-session'' option. Refer to the manbrian
page for details. This allows MP over non-tty devices where the original ppp process must not exit (such as sshd-spawned ppp sessions).
1999-06-01Increase the length of an individual device name to LINE_LEN.brian
Adjust the base physical device name correctly after a link transfer (allowing correct multilink callbacks).
1999-06-01Make async/sync/physical/hdlc dumps prettier by showing printablebrian
characters at the end of the line in hexdump style.
1999-06-01Mention that using MYADDR and HISADDR with ``set filter''brian
will result in the rules being updated any time MYADDR or HISADDR change.
1999-05-31Remember if MYADDR or HISADDR is used in a filter add tweak allbrian
filters any time either value changes.
1999-05-28Don't forget to free the mbufs that get processed bybrian
mp_Assemble(). Leak spotted by: louqi
1999-05-27Handle unterminated quoted strings without dup'ing the last characterbrian
with an out-by-one-memcpy.
1999-05-27Add some comments, optimise out a few strlen()s andbrian
remove a few extraneous assignments.
1999-05-27Call tty_Offline() from tty_Cooked() and tty_Free(), just inbrian
case ppp is abending and hasn't called physical_Offline() already.
1999-05-27Move the code for tweaking interface flags into one function.brian
1999-05-24Correct the ``ignoring sync/async'' warnings so that they showbrian
up with the correct device type. Reassign the correct tcpdevice or execdevice after transfering a link in MP server mode.
1999-05-24Don't warn about ``!'' lines being unindented commands in ppp.conf.brian
1999-05-23.Nm macros should have an argument in SYNOPSIS sectionAaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-05-18Move the tty locking stuff back out to physical.c sobrian
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.
1999-05-16Mention ``show layers''brian
1999-05-16Initialise ttydevice::Timerbrian
1999-05-15Add ``show layers'' to see the protocol layering for a link.brian
1999-05-14Handle LCP echo reqs properly again (broken with thebrian
layering changes).
1999-05-14Ensure that we're not going to overflow our ``struct tun''brian
when we mbuf_Read() into it. Add the link name to a few diagnostics.
1999-05-13Initialise the struct device part of struct ttydevice.brian
1999-05-13Fix a bum pointer dereference and make some variablebrian
names more consistent. Stack trace supplied by: Joe Clarke <jclarke@cisco.com>
1999-05-13Ignore repeated signals sent to the parent in backgroundbrian
mode.
1999-05-12Adjust our first timer delta according to the returnbrian
from getitimer() so that times are correct for ``show timer''.
1999-05-12Allow ``host:port/udp'' devices and support ``host:port/tcp'' asbrian
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().
1999-05-09Revert to the previous behaviour of only doing a utmpbrian
login if we're -direct on a tty device.
1999-05-09Deal with the fact that as we now mbuf_Read the fsmbrian
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.
1999-05-08o Redesign the layering mechanism and make the aliasing code part ofbrian
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''.