diff options
author | Brian Somers <brian@FreeBSD.org> | 1999-05-12 09:49:12 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1999-05-12 09:49:12 +0000 |
commit | 6815097bf774651c1f6c3b4052fd7eb5ee9aaac0 (patch) | |
tree | bbd653cd40602a4f2cc3b7e22ebd81a7080adf72 /usr.sbin/ppp/bundle.c | |
parent | 3c9bb8b7ffa78acb778356a9dc905dff822027f4 (diff) | |
download | src-6815097bf774651c1f6c3b4052fd7eb5ee9aaac0.tar.gz src-6815097bf774651c1f6c3b4052fd7eb5ee9aaac0.zip |
Allow ``host:port/udp'' devices and support ``host:port/tcp'' as
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().
Notes
Notes:
svn path=/head/; revision=47061
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index eb3985888171..96b62e0f653b 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bundle.c,v 1.51 1999/04/26 08:54:33 brian Exp $ + * $Id: bundle.c,v 1.52 1999/05/08 11:06:08 brian Exp $ */ #include <sys/param.h> @@ -87,7 +87,7 @@ #include "ip.h" #include "iface.h" -#define SCATTER_SEGMENTS 4 /* version, datalink, name, physical */ +#define SCATTER_SEGMENTS 5 /* version, datalink, name, physical, device */ #define SOCKET_OVERHEAD 100 /* additional buffer space for large */ /* {recv,send}msg() calls */ |