summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/mbuf.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-05-08 11:07:56 +0000
committerbrian <brian@FreeBSD.org>1999-05-08 11:07:56 +0000
commitab7d88ae2d8ea955c6193cc242b9cee4d58f8fd4 (patch)
treee79816f983bd5a5be86a78fe0aafbd00a13ac2db /usr.sbin/ppp/mbuf.h
parent713dd62834d401cc7b9b394a4b916ab9e5e3d4d5 (diff)
downloadFreeBSD-src-ab7d88ae2d8ea955c6193cc242b9cee4d58f8fd4.zip
FreeBSD-src-ab7d88ae2d8ea955c6193cc242b9cee4d58f8fd4.tar.gz
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''.
Diffstat (limited to 'usr.sbin/ppp/mbuf.h')
-rw-r--r--usr.sbin/ppp/mbuf.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/usr.sbin/ppp/mbuf.h b/usr.sbin/ppp/mbuf.h
index 1ee8e6f..f92dcd5 100644
--- a/usr.sbin/ppp/mbuf.h
+++ b/usr.sbin/ppp/mbuf.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: mbuf.h,v 1.14 1998/08/21 18:10:15 brian Exp $
+ * $Id: mbuf.h,v 1.15 1999/03/29 08:21:28 brian Exp $
*
* TODO:
*/
@@ -46,10 +46,9 @@ struct mqueue {
#define MB_IPIN 5
#define MB_ECHO 6
#define MB_LQR 7
-#define MB_LINK 8
-#define MB_VJCOMP 9
-#define MB_IPQ 10
-#define MB_MP 11
+#define MB_VJCOMP 8
+#define MB_IPQ 9
+#define MB_MP 10
#define MB_MAX MB_MP
struct cmdargs;
@@ -58,8 +57,11 @@ extern int mbuf_Length(struct mbuf *);
extern struct mbuf *mbuf_Alloc(int, int);
extern struct mbuf *mbuf_FreeSeg(struct mbuf *);
extern void mbuf_Free(struct mbuf *);
-extern void mbuf_Write(struct mbuf *, u_char *, int);
-extern struct mbuf *mbuf_Read(struct mbuf *, u_char *, int);
+extern void mbuf_Write(struct mbuf *, const void *, size_t);
+extern struct mbuf *mbuf_Read(struct mbuf *, void *, size_t);
+extern size_t mbuf_View(struct mbuf *, void *, size_t);
+extern struct mbuf *mbuf_Prepend(struct mbuf *, const void *, size_t, size_t);
+extern struct mbuf *mbuf_Truncate(struct mbuf *, size_t);
extern void mbuf_Log(void);
extern int mbuf_Show(struct cmdargs const *);
extern void mbuf_Enqueue(struct mqueue *, struct mbuf *);
OpenPOWER on IntegriCloud