summaryrefslogtreecommitdiffstats
path: root/sys/netinet/icmp_var.h
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2000-10-10 14:24:32 +0000
committeritojun <itojun@openbsd.org>2000-10-10 14:24:32 +0000
commit1ad7b35b86c07e891b97c34700c5aa539c565f42 (patch)
treeb9a6f740551a525c7594cc70c9ec353b86535f71 /sys/netinet/icmp_var.h
parentdo not call tcp_init twice on dualstack machine (diff)
downloadwireguard-openbsd-1ad7b35b86c07e891b97c34700c5aa539c565f42.tar.xz
wireguard-openbsd-1ad7b35b86c07e891b97c34700c5aa539c565f42.zip
bring in icmp rate limitation code.
make icmp6 rate limitation to latest (uses ppsratecheck only). (sync with netbsd) TODO: tcp SYN rate limit?
Diffstat (limited to 'sys/netinet/icmp_var.h')
-rw-r--r--sys/netinet/icmp_var.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/icmp_var.h b/sys/netinet/icmp_var.h
index b955a464d28..eb212370741 100644
--- a/sys/netinet/icmp_var.h
+++ b/sys/netinet/icmp_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp_var.h,v 1.4 1998/01/06 01:38:35 deraadt Exp $ */
+/* $OpenBSD: icmp_var.h,v 1.5 2000/10/10 14:24:33 itojun Exp $ */
/* $NetBSD: icmp_var.h,v 1.8 1995/03/26 20:32:19 jtc Exp $ */
/*
@@ -61,12 +61,14 @@ struct icmpstat {
*/
#define ICMPCTL_MASKREPL 1 /* allow replies to netmask requests */
#define ICMPCTL_BMCASTECHO 2 /* reply to icmps to broadcast/mcast */
-#define ICMPCTL_MAXID 3
+#define ICMPCTL_ERRPPSLIMIT 3 /* ICMP error pps limitation */
+#define ICMPCTL_MAXID 4
#define ICMPCTL_NAMES { \
{ 0, 0 }, \
{ "maskrepl", CTLTYPE_INT }, \
{ "bmcastecho", CTLTYPE_INT }, \
+ { "errppslimit", CTLTYPE_INT }, \
}
#ifdef _KERNEL