summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-05-03 09:35:21 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-05-03 09:35:21 +0000
commitb5efafc5276b3b5281f3589d829ab6d58ea84838 (patch)
tree0bde64a0e8e802c927702e4bfe133dc8410a92af /sys/netinet
parentb96ee01cff6107ce802a6cb064af95618434696d (diff)
Document which gobal variables are used for sysctl(8), add static to
gobals used only in this file and explain that the printf/debug variable must be settable by ddb. ok henning@, sthen@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_icmp.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
index 7e1f03cc15a..1680ac52816 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_icmp.c,v 1.98 2013/04/24 10:17:08 mpi Exp $ */
+/* $OpenBSD: ip_icmp.c,v 1.99 2013/05/03 09:35:20 mpi Exp $ */
/* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */
/*
@@ -105,17 +105,21 @@
* host table maintenance routines.
*/
+#ifdef ICMPPRINTFS
+int icmpprintfs = 0; /* Settable from ddb */
+#endif
+
+/* values controllable via sysctl */
int icmpmaskrepl = 0;
int icmpbmcastecho = 0;
int icmptstamprepl = 1;
-#ifdef ICMPPRINTFS
-int icmpprintfs = 0;
-#endif
int icmperrppslim = 100;
-int icmperrpps_count = 0;
-struct timeval icmperrppslim_last;
int icmp_rediraccept = 0;
int icmp_redirtimeout = 10 * 60;
+
+static int icmperrpps_count = 0;
+static struct timeval icmperrppslim_last;
+
static struct rttimer_queue *icmp_redirect_timeout_q = NULL;
struct icmpstat icmpstat;