From 5fe56c549d6d29e62ec8852d9f64bf04eae9bbea Mon Sep 17 00:00:00 2001 From: rwatson Date: Thu, 19 Jul 2007 22:34:25 +0000 Subject: Attempt to improve feature parity between UDPv4 and UDPv6 by merging UDPv4 features to UDPv6: - Add MAC checks on delivery and MAC labeling on transmit. - Check for (and reject) datagrams with destination port 0. - For multicast delivery, check the source port only if the socket being considered as a destination has been connected. - Implement UDP blackholing based on net.inet.udp.blackhole. - Add a new ICMPv6 unreachable reply rate limiting category for failed delivery attempts and implement rate limiting for UDPv6 (submitted by bz). Approved by: re (kensmith) Reviewed by: bz --- sys/netinet/icmp_var.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/netinet/icmp_var.h') diff --git a/sys/netinet/icmp_var.h b/sys/netinet/icmp_var.h index f7bfa8b..dda84f2 100644 --- a/sys/netinet/icmp_var.h +++ b/sys/netinet/icmp_var.h @@ -82,7 +82,8 @@ extern int badport_bandlim(int); #define BANDLIM_ICMP_TSTAMP 2 #define BANDLIM_RST_CLOSEDPORT 3 /* No connection, and no listeners */ #define BANDLIM_RST_OPENPORT 4 /* No connection, listener */ -#define BANDLIM_MAX 4 +#define BANDLIM_ICMP6_UNREACH 5 +#define BANDLIM_MAX 5 #endif #endif -- cgit v1.1