summaryrefslogtreecommitdiffstats
path: root/sys/netinet/icmp_var.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1998-12-04 04:21:25 +0000
committerdillon <dillon@FreeBSD.org>1998-12-04 04:21:25 +0000
commit7da0628e5519c77b2818b30342209fc1fc878815 (patch)
tree213b6893b4546a9c35bb5015e02f1c2ee81f6a9f /sys/netinet/icmp_var.h
parentb152822d79eab2ba0d3440b948b173dc9d43ecd7 (diff)
downloadFreeBSD-src-7da0628e5519c77b2818b30342209fc1fc878815.zip
FreeBSD-src-7da0628e5519c77b2818b30342209fc1fc878815.tar.gz
Cleanup icmp_var.h, make icmp bandlim sysctl permanent but if ICMP_BANDLIM
option not defined the sysctl int value is set to -1 and read-only. #ifdef KERNEL's added appropriately to wall off visibility of kernel routines from user code.
Diffstat (limited to 'sys/netinet/icmp_var.h')
-rw-r--r--sys/netinet/icmp_var.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/netinet/icmp_var.h b/sys/netinet/icmp_var.h
index dcbc82e..7ccbe4b 100644
--- a/sys/netinet/icmp_var.h
+++ b/sys/netinet/icmp_var.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)icmp_var.h 8.1 (Berkeley) 6/10/93
- * $Id: icmp_var.h,v 1.10 1998/12/03 20:23:20 dillon Exp $
+ * $Id: icmp_var.h,v 1.11 1998/12/04 03:49:18 dillon Exp $
*/
#ifndef _NETINET_ICMP_VAR_H_
@@ -67,26 +67,20 @@ struct icmpstat {
*/
#define ICMPCTL_MASKREPL 1 /* allow replies to netmask requests */
#define ICMPCTL_STATS 2 /* statistics (read-only) */
-
-#ifdef ICMP_BANDLIM
#define ICMPCTL_ICMPLIM 3
#define ICMPCTL_MAXID 4
-#define ICMP_BANDLIM_INFO { "icmplim", CTLTYPE_INT },
-#else
-#define ICMPCTL_MAXID 3
-#define ICMP_BANDLIM_INFO
-#endif
-
#define ICMPCTL_NAMES { \
{ 0, 0 }, \
{ "maskrepl", CTLTYPE_INT }, \
{ "stats", CTLTYPE_STRUCT }, \
- ICMP_BANDLIM_INFO \
+ { "icmplim", CTLTYPE_INT }, \
}
+#ifdef KERNEL
#ifdef ICMP_BANDLIM
extern int badport_bandlim __P((int));
#endif
+#endif
#endif
OpenPOWER on IntegriCloud