mbuf.h (22997) | mbuf.h (26516) |
---|---|
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$ | 18 * $Id: mbuf.h,v 1.4 1997/02/22 16:10:35 peter Exp $ |
19 * 20 * TODO: 21 */ 22 23#ifndef _MBUF_H_ 24#define _MBUF_H_ 25 26struct mbuf { --- 23 unchanged lines hidden (view full) --- 50#define MB_ECHO 5 51#define MB_LQR 6 52#define MB_MODEM 7 53#define MB_VJCOMP 8 54#define MB_LOG 9 55#define MB_IPQ 10 56#define MB_MAX MB_IPQ 57 | 19 * 20 * TODO: 21 */ 22 23#ifndef _MBUF_H_ 24#define _MBUF_H_ 25 26struct mbuf { --- 23 unchanged lines hidden (view full) --- 50#define MB_ECHO 5 51#define MB_LQR 6 52#define MB_MODEM 7 53#define MB_VJCOMP 8 54#define MB_LOG 9 55#define MB_IPQ 10 56#define MB_MAX MB_IPQ 57 |
58extern int plength __P((struct mbuf *bp)); 59extern struct mbuf *mballoc __P((int cnt, int type)); 60extern struct mbuf *mbfree __P((struct mbuf *bp)); 61extern void pfree __P((struct mbuf *bp)); 62extern void mbwrite __P((struct mbuf *bp, u_char *ptr, int cnt)); 63extern struct mbuf *mbread __P((struct mbuf *bp, u_char *ptr, int cnt)); 64extern void DumpBp __P((struct mbuf *bp)); 65extern void Enqueue __P((struct mqueue *queue, struct mbuf *bp)); 66extern struct mbuf *Dequeue __P((struct mqueue *queue)); | 58extern int plength(struct mbuf *bp); 59extern struct mbuf *mballoc(int cnt, int type); 60extern struct mbuf *mbfree(struct mbuf *bp); 61extern void pfree(struct mbuf *bp); 62extern void mbwrite(struct mbuf *bp, u_char *ptr, int cnt); 63extern struct mbuf *mbread(struct mbuf *bp, u_char *ptr, int cnt); 64extern void DumpBp(struct mbuf *bp); 65extern void Enqueue(struct mqueue *queue, struct mbuf *bp); 66extern struct mbuf *Dequeue(struct mqueue *queue); 67extern void LogMemory(); 68extern int ShowMemMap(); |
67#endif | 69#endif |