break out special local mail processing (e.g., mapping to the
[unix-history] / usr / src / usr.bin / netstat / netstat.h
... / ...
CommitLineData
1/*
2 * Copyright (c) 1992, 1993
3 * Regents of the University of California. All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
7 * @(#)netstat.h 8.2 (Berkeley) %G%
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 gflag; /* show group (multicast) routing or stats */
16int iflag; /* show interfaces */
17int mflag; /* show memory stats */
18int nflag; /* show addresses numerically */
19int pflag; /* show given protocol */
20int rflag; /* show routing tables (or routing stats) */
21int sflag; /* show protocol statistics */
22int tflag; /* show i/f watchdog timers */
23
24int interval; /* repeat interval for i/f stats */
25
26char *interface; /* desired i/f for stats, or NULL for all i/fs */
27int unit; /* unit number for above */
28
29int af; /* address family */
30
31char *prog; /* program name */
32
33
34int kread __P((u_long addr, char *buf, int size));
35char *plural __P((int));
36char *plurales __P((int));
37
38void protopr __P((u_long, char *));
39void tcp_stats __P((u_long, char *));
40void udp_stats __P((u_long, char *));
41void ip_stats __P((u_long, char *));
42void icmp_stats __P((u_long, char *));
43void igmp_stats __P((u_long, char *));
44void protopr __P((u_long, char *));
45
46void mbpr(u_long);
47
48void hostpr __P((u_long, u_long));
49void impstats __P((u_long, u_long));
50
51void intpr __P((int, u_long));
52
53void pr_rthdr __P(());
54void pr_family __P((int));
55void rt_stats __P((u_long));
56char *ns_phost __P((struct sockaddr *));
57void upHex __P((char *));
58
59char *routename __P((u_long));
60char *netname __P((u_long, u_long));
61char *ns_print __P((struct sockaddr *));
62void routepr __P((u_long));
63
64void nsprotopr __P((u_long, char *));
65void spp_stats __P((u_long, char *));
66void idp_stats __P((u_long, char *));
67void nserr_stats __P((u_long, char *));
68
69void intpr __P((int, u_long));
70
71void unixpr __P((u_long));
72
73void esis_stats __P((u_long, char *));
74void clnp_stats __P((u_long, char *));
75void cltp_stats __P((u_long, char *));
76void iso_protopr __P((u_long, char *));
77void iso_protopr1 __P((u_long, int));
78void tp_protopr __P((u_long, char *));
79void tp_inproto __P((u_long));
80void tp_stats __P((caddr_t, caddr_t));
81
82void mroutepr __P((u_long, u_long, u_long));
83void mrt_stats __P((u_long, u_long));