]> The Tcpdump Group git mirrors - tcpdump/commitdiff
GRE: Add a couple comments about the bounds.
authorDenis Ovsienko <[email protected]>
Fri, 3 Feb 2017 14:09:18 +0000 (14:09 +0000)
committerDenis Ovsienko <[email protected]>
Fri, 3 Feb 2017 14:15:13 +0000 (14:15 +0000)
print-gre.c

index 505752a1b8fad1b0ccd213b1e1ed7f6764707274..4664bd3f195c08c56a401db317424cc735cb816a 100644 (file)
@@ -119,6 +119,7 @@ gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length)
        u_int len = length;
        uint16_t flags, prot;
 
+       /* 16 bits ND_TCHECKed in gre_print() */
        flags = EXTRACT_16BITS(bp);
         if (ndo->ndo_vflag)
             ND_PRINT((ndo, ", Flags [%s]",
@@ -246,6 +247,7 @@ gre_print_1(netdissect_options *ndo, const u_char *bp, u_int length)
        u_int len = length;
        uint16_t flags, prot;
 
+       /* 16 bits ND_TCHECKed in gre_print() */
        flags = EXTRACT_16BITS(bp);
        len -= 2;
        bp += 2;