summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2004-03-26 19:52:18 +0000
committerume <ume@FreeBSD.org>2004-03-26 19:52:18 +0000
commit11f479f5193062dc4eb60f7c5964ffbd382dd52a (patch)
treee99a84e7b828e8e198ef8e99c89434dfc678ecac /sys/netinet
parentb44e46cbe7c7547a45789778ba2daaf00635ae02 (diff)
downloadFreeBSD-src-11f479f5193062dc4eb60f7c5964ffbd382dd52a.zip
FreeBSD-src-11f479f5193062dc4eb60f7c5964ffbd382dd52a.tar.gz
Validate IPv6 socket options more carefully to avoid a panic.
PR: kern/61513 Reviewed by: cperciva, nectar
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip6.h1
1 files changed, 1 insertions, 0 deletions
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
/*
OpenPOWER on IntegriCloud