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