1/* 2 * PPP Memory handling module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 *
| 1/* 2 * PPP Memory handling module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 *
|
20 * $Id: mbuf.c,v 1.11 1997/11/22 03:37:40 brian Exp $
| 20 * $Id: mbuf.c,v 1.12 1997/12/28 02:56:42 brian Exp $
|
21 * 22 */ 23#include <sys/param.h>
| 21 * 22 */ 23#include <sys/param.h>
|
24#include <sys/socket.h>
| |
25#include <netinet/in.h> 26 27#include <stdio.h> 28#include <stdlib.h> 29#include <string.h> 30 31#include "command.h" 32#include "mbuf.h" 33#include "log.h" 34#include "defs.h" 35#include "loadalias.h" 36#include "vars.h" 37#include "server.h" 38
| 24#include <netinet/in.h> 25 26#include <stdio.h> 27#include <stdlib.h> 28#include <string.h> 29 30#include "command.h" 31#include "mbuf.h" 32#include "log.h" 33#include "defs.h" 34#include "loadalias.h" 35#include "vars.h" 36#include "server.h" 37
|
39struct memmap {
| 38static struct memmap {
|
40 struct mbuf *queue; 41 int count; 42} MemMap[MB_MAX + 2]; 43 44static int totalalloced; 45 46int 47plength(struct mbuf * bp)
--- 129 unchanged lines hidden --- | 39 struct mbuf *queue; 40 int count; 41} MemMap[MB_MAX + 2]; 42 43static int totalalloced; 44 45int 46plength(struct mbuf * bp)
--- 129 unchanged lines hidden --- |