Deleted Added
full compact
mbuf.c (67680) mbuf.c (67911)
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 * $FreeBSD: head/usr.sbin/ppp/mbuf.c 67680 2000-10-27 05:34:40Z brian $
20 * $FreeBSD: head/usr.sbin/ppp/mbuf.c 67911 2000-10-30 00:15:27Z brian $
21 *
22 */
23#include <sys/types.h>
24
25#include <stdio.h>
26#include <stdlib.h>
27#include <string.h>
28#include <sysexits.h>

--- 41 unchanged lines hidden (view full) ---

70{
71 int len;
72
73 for (len = 0; bp; bp = bp->m_next)
74 len += bp->m_len;
75 return len;
76}
77
21 *
22 */
23#include <sys/types.h>
24
25#include <stdio.h>
26#include <stdlib.h>
27#include <string.h>
28#include <sysexits.h>

--- 41 unchanged lines hidden (view full) ---

70{
71 int len;
72
73 for (len = 0; bp; bp = bp->m_next)
74 len += bp->m_len;
75 return len;
76}
77
78const char *
78static const char *
79mbuftype(int type)
80{
81 static const char * const mbufdesc[MB_MAX] = {
82 "ip in", "ip out", "nat in", "nat out", "mp in", "mp out",
83 "vj in", "vj out", "icompd in", "icompd out", "compd in", "compd out",
84 "lqr in", "lqr out", "echo in", "echo out", "proto in", "proto out",
85 "acf in", "acf out", "sync in", "sync out", "hdlc in", "hdlc out",
86 "async in", "async out", "cbcp in", "cbcp out", "chap in", "chap out",

--- 341 unchanged lines hidden ---
79mbuftype(int type)
80{
81 static const char * const mbufdesc[MB_MAX] = {
82 "ip in", "ip out", "nat in", "nat out", "mp in", "mp out",
83 "vj in", "vj out", "icompd in", "icompd out", "compd in", "compd out",
84 "lqr in", "lqr out", "echo in", "echo out", "proto in", "proto out",
85 "acf in", "acf out", "sync in", "sync out", "hdlc in", "hdlc out",
86 "async in", "async out", "cbcp in", "cbcp out", "chap in", "chap out",

--- 341 unchanged lines hidden ---