4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / usr.bin / netstat / netstat.h
CommitLineData
d2382bbc
KS
1/*
2 * Copyright (c) 1992 Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
2839532b 7 * @(#)netstat.h 8.1 (Berkeley) %G%
d2382bbc
KS
8 */
9
10#include <sys/cdefs.h>
11
12int Aflag; /* show addresses of protocol control block */
13int aflag; /* show all sockets (including servers) */
14int dflag; /* show i/f dropped packets */
15int hflag; /* show IMP host table */
16int iflag; /* show interfaces */
27788811 17int Bflag; /* show multicast tables (or multicast stats) */
d2382bbc
KS
18int mflag; /* show memory stats */
19int nflag; /* show addresses numerically */
20int pflag; /* show given protocol */
21int rflag; /* show routing tables (or routing stats) */
22int sflag; /* show protocol statistics */
23int tflag; /* show i/f watchdog timers */
24
25int interval; /* repeat interval for i/f stats */
26
27char *interface; /* desired i/f for stats, or NULL for all i/fs */
28int unit; /* unit number for above */
29
30int af; /* address family */
31
32char *prog; /* program name */
33
34
d1cfb820 35int kread __P((u_long addr, char *buf, int size));
d2382bbc 36char *plural __P((int));
27788811 37char *plurales __P((int));
d2382bbc 38
d1cfb820
KS
39void protopr __P((u_long, char *));
40void tcp_stats __P((u_long, char *));
41void udp_stats __P((u_long, char *));
42void ip_stats __P((u_long, char *));
43void icmp_stats __P((u_long, char *));
41560784 44void igmp_stats __P((u_long, char *));
d1cfb820 45void protopr __P((u_long, char *));
d2382bbc 46
d1cfb820 47void mbpr(u_long);
d2382bbc 48
d1cfb820
KS
49void hostpr __P((u_long, u_long));
50void impstats __P((u_long, u_long));
51
52void intpr __P((int, u_long));
d2382bbc
KS
53
54void pr_rthdr __P(());
55void pr_family __P((int));
d1cfb820 56void rt_stats __P((u_long));
d2382bbc
KS
57char *ns_phost __P((struct sockaddr *));
58void upHex __P((char *));
59
60char *routename __P((u_long));
61char *netname __P((u_long, u_long));
62char *ns_print __P((struct sockaddr *));
d1cfb820 63void routepr __P((u_long));
d2382bbc 64
d1cfb820
KS
65void nsprotopr __P((u_long, char *));
66void spp_stats __P((u_long, char *));
67void idp_stats __P((u_long, char *));
68void nserr_stats __P((u_long, char *));
d2382bbc 69
d1cfb820 70void intpr __P((int, u_long));
d2382bbc 71
d1cfb820 72void unixpr __P((u_long));
d2382bbc 73
d1cfb820
KS
74void esis_stats __P((u_long, char *));
75void clnp_stats __P((u_long, char *));
76void cltp_stats __P((u_long, char *));
77void iso_protopr __P((u_long, char *));
78void iso_protopr1 __P((u_long, int));
79void tp_protopr __P((u_long, char *));
80void tp_inproto __P((u_long));
d2382bbc 81void tp_stats __P((caddr_t, caddr_t));
27788811 82
d1cfb820
KS
83void mroutepr __P((u_long, u_long, u_long));
84void mrt_stats __P((u_long, u_long));