]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add support for incomplete header chain param prob message
authorTom Jones <[email protected]>
Thu, 9 May 2019 13:00:49 +0000 (13:00 +0000)
committerfxlb <[email protected]>
Thu, 9 May 2019 20:16:53 +0000 (22:16 +0200)
Add support for incomplete header chain paramater problem message as
defined in Section 6 of RFC7112.

print-icmp6.c

index 9b6468f124a2daa9f15109bf7a628ea212e21899..c1bce28be8714c5e2fff7c3c0ab4ef4cd91ed1e8 100644 (file)
@@ -151,6 +151,7 @@ struct icmp6_hdr {
 #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_FRAGHDRCHAIN   3       /* incomplete header chain */
 
 #define ICMP6_INFOMSG_MASK             0x80    /* all informational messages */
 
@@ -1162,6 +1163,10 @@ icmp6_print(netdissect_options *ndo,
                         ND_PRINT(", option - octet %u",
                                 GET_BE_U_4(dp->icmp6_pptr));
                         break;
+               case ICMP6_PARAMPROB_FRAGHDRCHAIN:
+                        ND_PRINT(", incomplete header chain - octet %u",
+                                GET_BE_U_4(dp->icmp6_pptr));
+                        break;
                default:
                         ND_PRINT(", code-#%u",
                                   icmp6_code);