Commit | Line | Data |
---|---|---|
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 | ||
12 | int Aflag; /* show addresses of protocol control block */ | |
13 | int aflag; /* show all sockets (including servers) */ | |
14 | int dflag; /* show i/f dropped packets */ | |
15 | int hflag; /* show IMP host table */ | |
16 | int iflag; /* show interfaces */ | |
27788811 | 17 | int Bflag; /* show multicast tables (or multicast stats) */ |
d2382bbc KS |
18 | int mflag; /* show memory stats */ |
19 | int nflag; /* show addresses numerically */ | |
20 | int pflag; /* show given protocol */ | |
21 | int rflag; /* show routing tables (or routing stats) */ | |
22 | int sflag; /* show protocol statistics */ | |
23 | int tflag; /* show i/f watchdog timers */ | |
24 | ||
25 | int interval; /* repeat interval for i/f stats */ | |
26 | ||
27 | char *interface; /* desired i/f for stats, or NULL for all i/fs */ | |
28 | int unit; /* unit number for above */ | |
29 | ||
30 | int af; /* address family */ | |
31 | ||
32 | char *prog; /* program name */ | |
33 | ||
34 | ||
d1cfb820 | 35 | int kread __P((u_long addr, char *buf, int size)); |
d2382bbc | 36 | char *plural __P((int)); |
27788811 | 37 | char *plurales __P((int)); |
d2382bbc | 38 | |
d1cfb820 KS |
39 | void protopr __P((u_long, char *)); |
40 | void tcp_stats __P((u_long, char *)); | |
41 | void udp_stats __P((u_long, char *)); | |
42 | void ip_stats __P((u_long, char *)); | |
43 | void icmp_stats __P((u_long, char *)); | |
41560784 | 44 | void igmp_stats __P((u_long, char *)); |
d1cfb820 | 45 | void protopr __P((u_long, char *)); |
d2382bbc | 46 | |
d1cfb820 | 47 | void mbpr(u_long); |
d2382bbc | 48 | |
d1cfb820 KS |
49 | void hostpr __P((u_long, u_long)); |
50 | void impstats __P((u_long, u_long)); | |
51 | ||
52 | void intpr __P((int, u_long)); | |
d2382bbc KS |
53 | |
54 | void pr_rthdr __P(()); | |
55 | void pr_family __P((int)); | |
d1cfb820 | 56 | void rt_stats __P((u_long)); |
d2382bbc KS |
57 | char *ns_phost __P((struct sockaddr *)); |
58 | void upHex __P((char *)); | |
59 | ||
60 | char *routename __P((u_long)); | |
61 | char *netname __P((u_long, u_long)); | |
62 | char *ns_print __P((struct sockaddr *)); | |
d1cfb820 | 63 | void routepr __P((u_long)); |
d2382bbc | 64 | |
d1cfb820 KS |
65 | void nsprotopr __P((u_long, char *)); |
66 | void spp_stats __P((u_long, char *)); | |
67 | void idp_stats __P((u_long, char *)); | |
68 | void nserr_stats __P((u_long, char *)); | |
d2382bbc | 69 | |
d1cfb820 | 70 | void intpr __P((int, u_long)); |
d2382bbc | 71 | |
d1cfb820 | 72 | void unixpr __P((u_long)); |
d2382bbc | 73 | |
d1cfb820 KS |
74 | void esis_stats __P((u_long, char *)); |
75 | void clnp_stats __P((u_long, char *)); | |
76 | void cltp_stats __P((u_long, char *)); | |
77 | void iso_protopr __P((u_long, char *)); | |
78 | void iso_protopr1 __P((u_long, int)); | |
79 | void tp_protopr __P((u_long, char *)); | |
80 | void tp_inproto __P((u_long)); | |
d2382bbc | 81 | void tp_stats __P((caddr_t, caddr_t)); |
27788811 | 82 | |
d1cfb820 KS |
83 | void mroutepr __P((u_long, u_long, u_long)); |
84 | void mrt_stats __P((u_long, u_long)); |