Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 Change ip6_hdrnestlimit to be 15 instead of 50....



details:   https://anonhg.NetBSD.org/src/rev/c19701a70f0b
branches:  trunk
changeset: 829637:c19701a70f0b
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Feb 07 10:21:59 2018 +0000

description:
Change ip6_hdrnestlimit to be 15 instead of 50. I couldn't find any
reference in RFCs about what a correct limit should be, but FreeBSD already
uses 15.

If an IPv6 packet has 50 options, there is clearly something wrong with it.

diffstat:

 sys/netinet6/in6_proto.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e751473cc47b -r c19701a70f0b sys/netinet6/in6_proto.c
--- a/sys/netinet6/in6_proto.c  Wed Feb 07 09:59:56 2018 +0000
+++ b/sys/netinet6/in6_proto.c  Wed Feb 07 10:21:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6_proto.c,v 1.119 2017/09/27 10:05:05 ozaki-r Exp $  */
+/*     $NetBSD: in6_proto.c,v 1.120 2018/02/07 10:21:59 maxv Exp $     */
 /*     $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $      */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.119 2017/09/27 10:05:05 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.120 2018/02/07 10:21:59 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_gateway.h"
@@ -569,7 +569,7 @@
 int    ip6_maxfragpackets = 200;
 int    ip6_maxfrags = 200;
 int    ip6_log_interval = 5;
-int    ip6_hdrnestlimit = 50;  /* appropriate? */
+int    ip6_hdrnestlimit = 15;  /* appropriate? */
 int    ip6_dad_count = 1;      /* DupAddrDetectionTransmits */
 int    ip6_auto_flowlabel = 1;
 int    ip6_use_deprecated = 1; /* allow deprecated addr (RFC2462 5.5.4) */



Home | Main Index | Thread Index | Old Index