Deleted Added
full compact
mbuf.c (78309) mbuf.c (78314)
1/*
2 * Copyright (c) 1983, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)mbuf.c 8.1 (Berkeley) 6/6/93";
37#endif
38static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static char sccsid[] = "@(#)mbuf.c 8.1 (Berkeley) 6/6/93";
37#endif
38static const char rcsid[] =
39 "$FreeBSD: head/usr.bin/netstat/mbuf.c 78309 2001-06-15 23:07:59Z assar $";
39 "$FreeBSD: head/usr.bin/netstat/mbuf.c 78314 2001-06-15 23:35:13Z assar $";
40#endif /* not lint */
41
42#include <sys/param.h>
43#include <sys/mbuf.h>
44#include <sys/protosw.h>
45#include <sys/socket.h>
46#include <sys/sysctl.h>
47

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

89#endif
90 { 0, 0 }
91};
92
93/*
94 * Print mbuf statistics.
95 */
96void
40#endif /* not lint */
41
42#include <sys/param.h>
43#include <sys/mbuf.h>
44#include <sys/protosw.h>
45#include <sys/socket.h>
46#include <sys/sysctl.h>
47

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

89#endif
90 { 0, 0 }
91};
92
93/*
94 * Print mbuf statistics.
95 */
96void
97mbpr(mbaddr, mbtaddr, nmbcaddr, nmbufaddr)
98 u_long mbaddr, mbtaddr, nmbcaddr, nmbufaddr;
97mbpr(u_long mbaddr, u_long mbtaddr, u_long nmbcaddr, u_long nmbufaddr)
99{
100 u_long totmem, totpossible, totmbufs;
101 register int i;
102 struct mbstat mbstat;
103 struct mbtypenames *mp;
104 int name[3], nmbclusters, nmbufs, nmbcnt, nmbtypes;
105 size_t nmbclen, nmbuflen, nmbcntlen, mbstatlen, mbtypeslen;
106 u_long *mbtypes;

--- 113 unchanged lines hidden ---
98{
99 u_long totmem, totpossible, totmbufs;
100 register int i;
101 struct mbstat mbstat;
102 struct mbtypenames *mp;
103 int name[3], nmbclusters, nmbufs, nmbcnt, nmbtypes;
104 size_t nmbclen, nmbuflen, nmbcntlen, mbstatlen, mbtypeslen;
105 u_long *mbtypes;

--- 113 unchanged lines hidden ---