julian
775125a062
Try handle missing packet tags better.
...
Inspired by changes suggested by brian Somers.
1999-11-14 10:21:26 +00:00
brian
30ceb7c670
Provide an empty name to getsockname() if one hasn't been set up.
...
Ok'd (for now) by: julian
1999-11-11 20:08:04 +00:00
archie
51e564d911
More bug fixes.
1999-11-10 23:56:57 +00:00
archie
7af6ddb015
Minor change to the configuration of number of slots.
1999-11-10 23:56:19 +00:00
archie
9c0f6dbefe
Fix some bugs; seems to work now. Minor change to the configuration field
...
to make the number of compression slots parameter consistent with what
IPCP negotiates (ie, the number of slots - 1).
1999-11-10 06:17:14 +00:00
archie
371524a338
Move handling of the address and control fields into the PPP node;
...
they belong there because they are device independent.
Also some other misc. fixes.
1999-11-10 06:15:22 +00:00
julian
c173e32dd2
Remove a null pointer reference
...
Submitted by: Brian Somers (brian@freebsd.org )
1999-11-09 00:31:04 +00:00
archie
2f772ace57
Fix crash when trying to duplicate a NULL meta.
1999-11-08 03:11:22 +00:00
archie
4336de9993
Get rid of the 'sync2' hook, which was a hack. Instead, just
...
directly detect outgoing LCP frames and do the right thing.
1999-11-08 03:10:20 +00:00
archie
4ada2ddb7d
Add support for the IFF_MULTICAST flag. There's not
...
much to do because we are a point-to-point interface.
Submitted by: phk
1999-11-08 03:08:59 +00:00
julian
ce5e8ccdd8
Be more accepting about the format of node IDs.
...
Submitted by: Brian Somers <brian@Awfulhak.org>
1999-11-07 04:18:20 +00:00
julian
648f67c414
Move a structure Netstat needs back out to ng_socketvar.h (yech)
1999-11-06 19:27:04 +00:00
archie
b974ee813c
Fix several bugs found in the first bit of testing.
1999-11-06 02:09:17 +00:00
julian
aa2c36581b
Re-add this till I can fix netstat to not need it.
1999-11-05 20:04:00 +00:00
julian
f3be8b4e84
Add the option for a socket node to shut down when the last hook
...
to an adjoining node is removed. Also move file scope definitions back
within the file, and remove un-needed include file.
1999-11-05 02:18:08 +00:00
phk
487a9d07d6
Move isfoo() and friends to the newly created sys/ctype.h.
...
Urged by: bde
1999-11-03 17:54:26 +00:00
archie
ef92fd8274
Add statistics counters to "tee" netgraph node type.
1999-11-02 23:31:49 +00:00
archie
a481e1e52b
Simplify checking/parsing of strings using strtoul(), isdigit(), etc.
1999-11-02 23:18:01 +00:00
archie
4ede940c75
Fix some bugs in MP allocation routine when links are non-equivalent.
1999-11-01 19:44:28 +00:00
julian
3127cac2f7
Add typedefs for node methods
...
Suggested by phk.
1999-11-01 10:00:40 +00:00
julian
e105baa7c1
braino in sample code.
...
picked up by phk.
1999-11-01 05:27:44 +00:00
julian
58e6bf41a6
Start making the contents of the generic framework opaque to the nodes.
...
This step: IDs are no-longer the address of the node.
Reviewd by: Archie@freebsd.org
1999-11-01 00:31:14 +00:00
archie
6f20b456fb
Revamped and more useful PPP node type, supporting multi-link PPP directly.
...
This is one piece of the grand unified PPP daemon concept, whereby using
netgraph nodes enables PPP data to be handled completely in kernel land,
while leaving negotiation/control to be handled by a single user land
daemon, no matter what the link type(s).
This is a safety checkin only; it compiles, but is utterly untested.
Concept reviewed by: julian, brian
1999-10-29 22:30:03 +00:00
julian
a754b84f1e
When the session is running, don't include the ethernet header in the length of the payload.
1999-10-29 04:32:27 +00:00
julian
a7375e191d
fix typo
1999-10-27 11:53:53 +00:00
julian
d65bad1ec7
The node goes away when last session disconnects or when disconnected from
...
the ethernet node.
1999-10-27 11:48:35 +00:00
julian
144be1740d
change PPPoE occurences to pppoe. Not JUST a cosmeting change.
...
some occurrances needed to be the same as the filenmnae which was pppoe
not PPPoE.
1999-10-27 11:29:51 +00:00
julian
1e37349d12
cleanups regarding misused m_pullup() and similar.
1999-10-26 22:33:54 +00:00
julian
48eeb0662d
Send the negotiated session ID on our packets (DUH!).
1999-10-26 11:26:23 +00:00
julian
a3c8d605bb
Send a PADT message to the peer when a session is closed down.
1999-10-26 11:04:25 +00:00
julian
9ed030c4d1
This one actually gets session data to the waiting ppp daemon
...
(well, my test program at least).
1999-10-26 09:25:18 +00:00
julian
debb714cef
This one actually negotiated it's way into a session.
...
still tuning to be done.
1999-10-26 08:08:48 +00:00
julian
f963ed1eaf
Bring ng_iface up-to-date with what has happenned to the bpf code.
1999-10-25 22:36:39 +00:00
julian
48db5a679e
more fixes, braino's, typo's, etc.
1999-10-23 22:46:38 +00:00
julian
732f8d1ced
A version of the pppoe code ellicits a response from the ISP end
...
(but still not quite right)
1999-10-23 15:15:42 +00:00
julian
41ef3662ca
dang, deleted a line
1999-10-23 04:52:54 +00:00
julian
bd67127489
Now that Netgraph is in the system there are some cleanups we can do.
...
Also save a slightly closer to completion version of the PPPOE code.
Submitted by: Archie Cobbs <archie@freebsd.org>
1999-10-23 04:28:11 +00:00
julian
c5c63975d5
Whistle's Netgraph link-layer (sometimes more) networking infrastructure.
...
Been in production for 3 years now. Gives Instant Frame relay to if_sr
and if_ar drivers, and PPPOE support soon. See:
ftp://ftp.whistle.com/pub/archie/netgraph/index.html
for on-line manual pages.
Reviewed by: Doug Rabson (dfr@freebsd.org )
Obtained from: Whistle CVS tree
1999-10-21 09:06:11 +00:00