diff options
author | wollman <wollman@FreeBSD.org> | 1995-02-16 00:27:47 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-02-16 00:27:47 +0000 |
commit | d9804d3f5c56924ae9cdd5ae7158f755b5048e16 (patch) | |
tree | c55472d24cbc6b9c5e2ff9ed34ce203485bb98af /sys/netinet/ip_icmp.c | |
parent | 668541d9ec6dbf8324e4383c47e81d62dfd9fca2 (diff) | |
download | FreeBSD-src-d9804d3f5c56924ae9cdd5ae7158f755b5048e16.zip FreeBSD-src-d9804d3f5c56924ae9cdd5ae7158f755b5048e16.tar.gz |
Add lots of useful MIB variables and a few not-so-useful ones for
completeness.
Diffstat (limited to 'sys/netinet/ip_icmp.c')
-rw-r--r-- | sys/netinet/ip_icmp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 376c5cb..fca9dad 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_icmp.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_icmp.c,v 1.3 1994/10/02 17:48:38 phk Exp $ + * $Id: ip_icmp.c,v 1.4 1994/10/08 22:39:56 phk Exp $ */ #include <sys/param.h> @@ -60,6 +60,7 @@ * host table maintenance routines. */ +struct icmpstat icmpstat; int icmpmaskrepl = 0; #ifdef ICMPPRINTFS int icmpprintfs = 0; @@ -582,14 +583,16 @@ icmp_sysctl(name, namelen, oldp, oldlenp, newp, newlen) void *newp; size_t newlen; { - /* All sysctl names at this level are terminal. */ if (namelen != 1) - return (ENOTDIR); + return (ENOTDIR); /* XXX overloaded */ switch (name[0]) { case ICMPCTL_MASKREPL: return (sysctl_int(oldp, oldlenp, newp, newlen, &icmpmaskrepl)); + case ICMPCTL_STATS: + return (sysctl_rdstruct(oldp, oldlenp, newp, &icmpstat, + sizeof icmpstat)); default: return (ENOPROTOOPT); } |