diff options
author | Brian Somers <brian@FreeBSD.org> | 1999-05-08 11:07:56 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1999-05-08 11:07:56 +0000 |
commit | 5d9e6103663c28d3986c674a772142f29e6584be (patch) | |
tree | ede7d088a25018fff1729077040786d7d95a4c11 /usr.sbin/ppp/hdlc.h | |
parent | 46be34b90213ebd9037cb2c24aec0009d7f2f5c1 (diff) | |
download | src-5d9e6103663c28d3986c674a772142f29e6584be.tar.gz src-5d9e6103663c28d3986c674a772142f29e6584be.zip |
o Redesign the layering mechanism and make the aliasing code part of
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''.
Notes
Notes:
svn path=/head/; revision=46686
Diffstat (limited to 'usr.sbin/ppp/hdlc.h')
-rw-r--r-- | usr.sbin/ppp/hdlc.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ppp/hdlc.h b/usr.sbin/ppp/hdlc.h index 39d43888adac..26029216e1e2 100644 --- a/usr.sbin/ppp/hdlc.h +++ b/usr.sbin/ppp/hdlc.h @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: hdlc.h,v 1.15 1998/05/21 21:45:30 brian Exp $ + * $Id: hdlc.h,v 1.16 1999/04/03 11:54:00 brian Exp $ * * TODO: */ @@ -109,7 +109,8 @@ extern const char *hdlc_Protocol2Nam(u_short); extern void hdlc_DecodePacket(struct bundle *, u_short, struct mbuf *, struct link *); -extern void hdlc_Input(struct bundle *, struct mbuf *, struct physical *); -extern void hdlc_Output(struct link *, int, u_short, struct mbuf *bp); -extern u_short hdlc_Fcs(u_short, u_char *, int); +extern u_short hdlc_Fcs(u_char *, size_t); extern int hdlc_Detect(u_char const **, int, int); +extern int hdlc_WrapperOctets(struct lcp *, u_short); + +extern struct layer hdlclayer; |