Source-Changes-HG archive

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

[src/trunk]: src Add code 3 of paramprob, part of RFC7112: "IPv6 First Fragme...



details:   https://anonhg.NetBSD.org/src/rev/bfef1e916578
branches:  trunk
changeset: 322214:bfef1e916578
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Apr 24 07:22:32 2018 +0000

description:
Add code 3 of paramprob, part of RFC7112: "IPv6 First Fragment has
incomplete IPv6 Header Chain". Handle this code in ping6.

diffstat:

 sbin/ping6/ping6.c  |  7 +++++--
 sys/netinet/icmp6.h |  3 ++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r c7435c5602bd -r bfef1e916578 sbin/ping6/ping6.c
--- a/sbin/ping6/ping6.c        Tue Apr 24 07:12:04 2018 +0000
+++ b/sbin/ping6/ping6.c        Tue Apr 24 07:22:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ping6.c,v 1.102 2018/04/24 07:12:04 maxv Exp $ */
+/*     $NetBSD: ping6.c,v 1.103 2018/04/24 07:22:32 maxv Exp $ */
 /*     $KAME: ping6.c,v 1.164 2002/11/16 14:05:37 itojun Exp $ */
 
 /*
@@ -77,7 +77,7 @@
 #else
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ping6.c,v 1.102 2018/04/24 07:12:04 maxv Exp $");
+__RCSID("$NetBSD: ping6.c,v 1.103 2018/04/24 07:22:32 maxv Exp $");
 #endif
 #endif
 
@@ -2108,6 +2108,9 @@
                case ICMP6_PARAMPROB_OPTION:
                        printf("Unrecognized Option ");
                        break;
+               case ICMP6_PARAMPROB_FRAGMENT:
+                       printf("First Fragment Has Incomplete Chain ");
+                       break;
                default:
                        printf("Bad code(%d) ", icp->icmp6_code);
                        break;
diff -r c7435c5602bd -r bfef1e916578 sys/netinet/icmp6.h
--- a/sys/netinet/icmp6.h       Tue Apr 24 07:12:04 2018 +0000
+++ b/sys/netinet/icmp6.h       Tue Apr 24 07:22:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.h,v 1.50 2018/03/06 10:57:00 roy Exp $   */
+/*     $NetBSD: icmp6.h,v 1.51 2018/04/24 07:22:33 maxv Exp $  */
 /*     $KAME: icmp6.h,v 1.84 2003/04/23 10:26:51 itojun Exp $  */
 
 
@@ -156,6 +156,7 @@
 #define ICMP6_PARAMPROB_HEADER                 0       /* erroneous header field */
 #define ICMP6_PARAMPROB_NEXTHEADER     1       /* unrecognized next header */
 #define ICMP6_PARAMPROB_OPTION         2       /* unrecognized option */
+#define ICMP6_PARAMPROB_FRAGMENT       3       /* incomplete chain in frag */
 
 #define ICMP6_INFOMSG_MASK             0x80    /* all informational messages */
 



Home | Main Index | Thread Index | Old Index