netstat.h (78309) | netstat.h (78314) |
---|---|
1/* 2 * Copyright (c) 1992, 1993 3 * 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)netstat.h 8.2 (Berkeley) 1/4/94 | 1/* 2 * Copyright (c) 1992, 1993 3 * 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)netstat.h 8.2 (Berkeley) 1/4/94 |
34 * $FreeBSD: head/usr.bin/netstat/netstat.h 78309 2001-06-15 23:07:59Z assar $ | 34 * $FreeBSD: head/usr.bin/netstat/netstat.h 78314 2001-06-15 23:35:13Z assar $ |
35 */ 36 37#include <sys/cdefs.h> 38 39extern int Aflag; /* show addresses of protocol control block */ 40extern int aflag; /* show all sockets (including servers) */ 41extern int bflag; /* show i/f total bytes in/out */ 42extern int dflag; /* show i/f dropped packets */ --- 11 unchanged lines hidden (view full) --- 54 55extern int interval; /* repeat interval for i/f stats */ 56 57extern char *interface; /* desired i/f for stats, or NULL for all i/fs */ 58extern int unit; /* unit number for above */ 59 60extern int af; /* address family */ 61 | 35 */ 36 37#include <sys/cdefs.h> 38 39extern int Aflag; /* show addresses of protocol control block */ 40extern int aflag; /* show all sockets (including servers) */ 41extern int bflag; /* show i/f total bytes in/out */ 42extern int dflag; /* show i/f dropped packets */ --- 11 unchanged lines hidden (view full) --- 54 55extern int interval; /* repeat interval for i/f stats */ 56 57extern char *interface; /* desired i/f for stats, or NULL for all i/fs */ 58extern int unit; /* unit number for above */ 59 60extern int af; /* address family */ 61 |
62int kread __P((u_long addr, char *buf, int size)); 63char *plural __P((int)); 64char *plurales __P((int)); | 62int kread (u_long addr, char *buf, int size); 63char *plural (int); 64char *plurales (int); |
65 | 65 |
66void protopr __P((u_long, char *, int)); 67void tcp_stats __P((u_long, char *)); 68void udp_stats __P((u_long, char *)); 69void ip_stats __P((u_long, char *)); 70void icmp_stats __P((u_long, char *)); 71void igmp_stats __P((u_long, char *)); | 66void protopr (u_long, char *, int); 67void tcp_stats (u_long, char *); 68void udp_stats (u_long, char *); 69void ip_stats (u_long, char *); 70void icmp_stats (u_long, char *); 71void igmp_stats (u_long, char *); |
72#ifdef IPSEC | 72#ifdef IPSEC |
73void ipsec_stats __P((u_long, char *)); | 73void ipsec_stats (u_long, char *); |
74#endif 75 76#ifdef INET6 | 74#endif 75 76#ifdef INET6 |
77void ip6_stats __P((u_long, char *)); 78void ip6_ifstats __P((char *)); 79void icmp6_stats __P((u_long, char *)); 80void icmp6_ifstats __P((char *)); 81void pim6_stats __P((u_long, char *)); 82void rip6_stats __P((u_long, char *)); 83void mroute6pr __P((u_long, u_long)); 84void mrt6_stats __P((u_long)); | 77void ip6_stats (u_long, char *); 78void ip6_ifstats (char *); 79void icmp6_stats (u_long, char *); 80void icmp6_ifstats (char *); 81void pim6_stats (u_long, char *); 82void rip6_stats (u_long, char *); 83void mroute6pr (u_long, u_long); 84void mrt6_stats (u_long); |
85 86struct sockaddr_in6; 87struct in6_addr; | 85 86struct sockaddr_in6; 87struct in6_addr; |
88char *routename6 __P((struct sockaddr_in6 *)); 89char *netname6 __P((struct sockaddr_in6 *, struct in6_addr *)); | 88char *routename6 (struct sockaddr_in6 *); 89char *netname6 (struct sockaddr_in6 *, struct in6_addr *); |
90#endif /*INET6*/ 91 92#ifdef IPSEC | 90#endif /*INET6*/ 91 92#ifdef IPSEC |
93void pfkey_stats __P((u_long, char *)); | 93void pfkey_stats (u_long, char *); |
94#endif 95 | 94#endif 95 |
96void bdg_stats __P((u_long, char *)); | 96void bdg_stats (u_long, char *); |
97 | 97 |
98void mbpr __P((u_long, u_long, u_long, u_long)); | 98void mbpr (u_long, u_long, u_long, u_long); |
99 | 99 |
100void hostpr __P((u_long, u_long)); 101void impstats __P((u_long, u_long)); | 100void hostpr (u_long, u_long); 101void impstats (u_long, u_long); |
102 | 102 |
103void intpr __P((int, u_long, void (*) __P((char *)))); | 103void intpr (int, u_long, void (*)(char *)); |
104 | 104 |
105void pr_rthdr __P((int)); 106void pr_family __P((int)); 107void rt_stats __P((u_long)); 108char *ipx_pnet __P((struct sockaddr *)); 109char *ipx_phost __P((struct sockaddr *)); 110char *ns_phost __P((struct sockaddr *)); 111void upHex __P((char *)); | 105void pr_rthdr (int); 106void pr_family (int); 107void rt_stats (u_long); 108char *ipx_pnet (struct sockaddr *); 109char *ipx_phost (struct sockaddr *); 110char *ns_phost (struct sockaddr *); 111void upHex (char *); |
112 | 112 |
113char *routename __P((u_long)); 114char *netname __P((u_long, u_long)); 115char *atalk_print __P((struct sockaddr *, int)); 116char *atalk_print2 __P((struct sockaddr *, struct sockaddr *, int)); 117char *ipx_print __P((struct sockaddr *)); 118char *ns_print __P((struct sockaddr *)); 119void routepr __P((u_long)); | 113char *routename (u_long); 114char *netname (u_long, u_long); 115char *atalk_print (struct sockaddr *, int); 116char *atalk_print2 (struct sockaddr *, struct sockaddr *, int); 117char *ipx_print (struct sockaddr *); 118char *ns_print (struct sockaddr *); 119void routepr (u_long); |
120 | 120 |
121void ipxprotopr __P((u_long, char *)); 122void spx_stats __P((u_long, char *)); 123void ipx_stats __P((u_long, char *)); 124void ipxerr_stats __P((u_long, char *)); | 121void ipxprotopr (u_long, char *); 122void spx_stats (u_long, char *); 123void ipx_stats (u_long, char *); 124void ipxerr_stats (u_long, char *); |
125 | 125 |
126void nsprotopr __P((u_long, char *)); 127void spp_stats __P((u_long, char *)); 128void idp_stats __P((u_long, char *)); 129void nserr_stats __P((u_long, char *)); | 126void nsprotopr (u_long, char *); 127void spp_stats (u_long, char *); 128void idp_stats (u_long, char *); 129void nserr_stats (u_long, char *); |
130 | 130 |
131void atalkprotopr __P((u_long, char *)); 132void ddp_stats __P((u_long, char *)); | 131void atalkprotopr (u_long, char *); 132void ddp_stats (u_long, char *); |
133 | 133 |
134void netgraphprotopr __P((u_long, char *)); | 134void netgraphprotopr (u_long, char *); |
135 | 135 |
136void unixpr __P((void)); | 136void unixpr (void); |
137 | 137 |
138void esis_stats __P((u_long, char *)); 139void clnp_stats __P((u_long, char *)); 140void cltp_stats __P((u_long, char *)); 141void iso_protopr __P((u_long, char *)); 142void iso_protopr1 __P((u_long, int)); 143void tp_protopr __P((u_long, char *)); 144void tp_inproto __P((u_long)); 145void tp_stats __P((caddr_t, caddr_t)); | 138void esis_stats (u_long, char *); 139void clnp_stats (u_long, char *); 140void cltp_stats (u_long, char *); 141void iso_protopr (u_long, char *); 142void iso_protopr1 (u_long, int); 143void tp_protopr (u_long, char *); 144void tp_inproto (u_long); 145void tp_stats (caddr_t, caddr_t); |
146 | 146 |
147void mroutepr __P((u_long, u_long)); 148void mrt_stats __P((u_long)); | 147void mroutepr (u_long, u_long); 148void mrt_stats (u_long); |
149 | 149 |