]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-gre.c
Add support for dissecting RFC 2332 NHRP.
[tcpdump] / print-gre.c
index 40496ca7bae49244920bd0eb01e1989f7956abb4..25c6ac2f5566e684c57a6e88a4b726e1cf207923 100644 (file)
@@ -85,6 +85,7 @@ static const struct tok gre_flag_values[] = {
  * Ethertype values used for GRE (but not elsewhere?).
  */
 #define GRE_CDP                        0x2000  /* Cisco Discovery Protocol */
+#define GRE_NHRP               0x2001  /* Next Hop Resolution Protocol */
 #define GRE_WCCP               0x883e  /* Web Cache C* Protocol */
 
 struct wccp_redirect {
@@ -310,6 +311,9 @@ gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length)
        case GRE_CDP:
                cdp_print(ndo, bp, len);
                break;
+       case GRE_NHRP:
+               nhrp_print(ndo, bp, len);
+               break;
        default:
                ND_PRINT("gre-proto-0x%x", prot);
        }