diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1995-02-09 23:16:17 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1995-02-09 23:16:17 +0000 |
commit | 35c13fa033e2fc396d37d2b1397ae717fef5e0dd (patch) | |
tree | abe5a90e28e55096ebac44ce72986e64c508149c /sbin | |
parent | a0292f237572bd29b1bd4b376a2198c6f404e349 (diff) | |
download | src-35c13fa033e2fc396d37d2b1397ae717fef5e0dd.tar.gz src-35c13fa033e2fc396d37d2b1397ae717fef5e0dd.zip |
Implement TCP MIB variables.
Notes
Notes:
svn path=/head/; revision=6284
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/sysctl/sysctl.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 4dfa6f38daf2..ebed026e2ee4 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -38,7 +38,9 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93"; +/*static char sccsid[] = "From: @(#)sysctl.c 8.1 (Berkeley) 6/6/93"; */ +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <sys/param.h> @@ -57,6 +59,10 @@ static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93"; #include <netinet/ip_var.h> #include <netinet/udp.h> #include <netinet/udp_var.h> +#include <netinet/tcp.h> +#include <netinet/tcp_seq.h> +#include <netinet/tcp_timer.h> +#include <netinet/tcp_var.h> #include <errno.h> #include <stdio.h> @@ -472,6 +478,7 @@ struct ctlname inetname[] = CTL_IPPROTO_NAMES; struct ctlname ipname[] = IPCTL_NAMES; struct ctlname icmpname[] = ICMPCTL_NAMES; struct ctlname udpname[] = UDPCTL_NAMES; +struct ctlname tcpname[] = TCPCTL_NAMES; struct list inetlist = { inetname, IPPROTO_MAXID }; struct list inetvars[] = { { ipname, IPCTL_MAXID }, /* ip */ @@ -480,7 +487,7 @@ struct list inetvars[] = { { 0, 0 }, /* ggmp */ { 0, 0 }, { 0, 0 }, - { 0, 0 }, /* tcp */ + { tcpname, TCPCTL_MAXID }, /* tcp */ { 0, 0 }, { 0, 0 }, /* egp */ { 0, 0 }, |