From 35c13fa033e2fc396d37d2b1397ae717fef5e0dd Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Thu, 9 Feb 1995 23:16:17 +0000 Subject: Implement TCP MIB variables. --- sbin/sysctl/sysctl.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sbin') 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 @@ -57,6 +59,10 @@ static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93"; #include #include #include +#include +#include +#include +#include #include #include @@ -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 }, -- cgit v1.2.3