diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-12-13 20:00:54 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-12-13 20:00:54 +0000 |
commit | 90654a32a12cd0e30f6adb846ff6e9e5e6682a28 (patch) | |
tree | e8f59de8c6fe04c760d9e46528cb22f1da0c1cfc /sys/netinet/tcp_var.h | |
parent | b03a990aaf0a66e97ca7dd68b5f8b065d05e4b95 (diff) |
implement sysctls to report IP, TCP, UDP, and ICMP statistics and
change netstat to use them instead of accessing kvm for it. more
protocols will be added later.
discussed with deraadt@ claudio@ gilles@
ok deraadt@
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r-- | sys/netinet/tcp_var.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index ca90b1b8c5b..cf2859b19d2 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_var.h,v 1.83 2007/06/25 12:17:43 markus Exp $ */ +/* $OpenBSD: tcp_var.h,v 1.84 2007/12/13 20:00:53 reyk Exp $ */ /* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */ /* @@ -494,7 +494,8 @@ struct tcpstat { #define TCPCTL_REASS_LIMIT 18 /* max entries for tcp reass queues */ #define TCPCTL_DROP 19 /* drop tcp connection */ #define TCPCTL_SACKHOLE_LIMIT 20 /* max entries for tcp sack queues */ -#define TCPCTL_MAXID 21 +#define TCPCTL_STATS 21 /* TCP statistics */ +#define TCPCTL_MAXID 22 #define TCPCTL_NAMES { \ { 0, 0 }, \ @@ -518,6 +519,7 @@ struct tcpstat { { "reasslimit", CTLTYPE_INT }, \ { "drop", CTLTYPE_STRUCT }, \ { "sackholelimit", CTLTYPE_INT }, \ + { "stats", CTLTYPE_STRUCT } \ } #define TCPCTL_VARS { \ @@ -541,6 +543,7 @@ struct tcpstat { &tcp_do_rfc3390, \ NULL, \ NULL, \ + NULL, \ NULL \ } |