From 11f479f5193062dc4eb60f7c5964ffbd382dd52a Mon Sep 17 00:00:00 2001 From: ume Date: Fri, 26 Mar 2004 19:52:18 +0000 Subject: Validate IPv6 socket options more carefully to avoid a panic. PR: kern/61513 Reviewed by: cperciva, nectar --- sys/netinet/ip6.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netinet') diff --git a/sys/netinet/ip6.h b/sys/netinet/ip6.h index 336ef48..bbc18df 100644 --- a/sys/netinet/ip6.h +++ b/sys/netinet/ip6.h @@ -213,6 +213,7 @@ struct ip6_frag { #define IPV6_MMTU 1280 /* minimal MTU and reassembly. 1024 + 256 */ #define IPV6_MAXPACKET 65535 /* ip6 max packet size without Jumbo payload*/ +#define IPV6_MAXOPTHDR 2048 /* max option header size, 256 64-bit words */ #ifdef _KERNEL /* -- cgit v1.1