mbuf.h (31514) | mbuf.h (32663) |
---|---|
1/* 2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 3 * 4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 5 * 6 * Redistribution and use in source and binary forms are permitted 7 * provided that the above copyright notice and this paragraph are 8 * duplicated in all such forms and that any documentation, 9 * advertising materials, and other materials related to such 10 * distribution and use acknowledge that the software was developed 11 * by the Internet Initiative Japan. The name of the 12 * IIJ may not be used to endorse or promote products derived 13 * from this software without specific prior written permission. 14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 17 * | 1/* 2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 3 * 4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 5 * 6 * Redistribution and use in source and binary forms are permitted 7 * provided that the above copyright notice and this paragraph are 8 * duplicated in all such forms and that any documentation, 9 * advertising materials, and other materials related to such 10 * distribution and use acknowledge that the software was developed 11 * by the Internet Initiative Japan. The name of the 12 * IIJ may not be used to endorse or promote products derived 13 * from this software without specific prior written permission. 14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 17 * |
18 * $Id: mbuf.h,v 1.9 1997/11/22 03:37:40 brian Exp $ | 18 * $Id: mbuf.h,v 1.10 1997/12/03 10:23:50 brian Exp $ |
19 * 20 * TODO: 21 */ 22 23struct mbuf { 24 u_char *base; /* pointer to top of buffer space */ 25 short size; /* size allocated from base */ 26 short offset; /* offset to start position */ --- 4 unchanged lines hidden (view full) --- 31}; 32 33struct mqueue { 34 struct mbuf *top; 35 struct mbuf *last; 36 int qlen; 37}; 38 | 19 * 20 * TODO: 21 */ 22 23struct mbuf { 24 u_char *base; /* pointer to top of buffer space */ 25 short size; /* size allocated from base */ 26 short offset; /* offset to start position */ --- 4 unchanged lines hidden (view full) --- 31}; 32 33struct mqueue { 34 struct mbuf *top; 35 struct mbuf *last; 36 int qlen; 37}; 38 |
39#define NULLBUFF ((struct mbuf *)0) 40 | |
41#define MBUF_CTOP(bp) (bp->base + bp->offset) 42 43#define MB_ASYNC 1 44#define MB_FSM 2 45#define MB_HDLCOUT 3 46#define MB_IPIN 4 47#define MB_ECHO 5 48#define MB_LQR 6 --- 14 unchanged lines hidden --- | 39#define MBUF_CTOP(bp) (bp->base + bp->offset) 40 41#define MB_ASYNC 1 42#define MB_FSM 2 43#define MB_HDLCOUT 3 44#define MB_IPIN 4 45#define MB_ECHO 5 46#define MB_LQR 6 --- 14 unchanged lines hidden --- |