mbuf.h (3b0f8d2ed641ceeded11c0d3f253b0cacbf00880) | mbuf.h (2764b86afdc99a30f4b1a4da2c04db8aa7aa785d) |
---|---|
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.11.2.1 1998/01/30 19:45:55 brian Exp $ | 18 * $Id: mbuf.h,v 1.11.2.2 1998/04/03 19:21:39 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 */ --- 19 unchanged lines hidden (view full) --- 46#define MB_LQR 6 47#define MB_LINK 7 48#define MB_VJCOMP 8 49#define MB_LOG 9 50#define MB_IPQ 10 51#define MB_MP 11 52#define MB_MAX MB_MP 53 | 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 */ --- 19 unchanged lines hidden (view full) --- 46#define MB_LQR 6 47#define MB_LINK 7 48#define MB_VJCOMP 8 49#define MB_LOG 9 50#define MB_IPQ 10 51#define MB_MP 11 52#define MB_MAX MB_MP 53 |
54struct cmdargs; 55 |
|
54extern int plength(struct mbuf *); 55extern struct mbuf *mballoc(int, int); 56extern struct mbuf *mbfree(struct mbuf *); 57extern void pfree(struct mbuf *); 58extern void mbwrite(struct mbuf *, u_char *, int); 59extern struct mbuf *mbread(struct mbuf *, u_char *, int); 60extern void LogMemory(void); 61extern int ShowMemMap(struct cmdargs const *); 62extern void Enqueue(struct mqueue *, struct mbuf *); 63extern struct mbuf *Dequeue(struct mqueue *); | 56extern int plength(struct mbuf *); 57extern struct mbuf *mballoc(int, int); 58extern struct mbuf *mbfree(struct mbuf *); 59extern void pfree(struct mbuf *); 60extern void mbwrite(struct mbuf *, u_char *, int); 61extern struct mbuf *mbread(struct mbuf *, u_char *, int); 62extern void LogMemory(void); 63extern int ShowMemMap(struct cmdargs const *); 64extern void Enqueue(struct mqueue *, struct mbuf *); 65extern struct mbuf *Dequeue(struct mqueue *); |