summaryrefslogtreecommitdiff
path: root/print-gre.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2023-04-11 03:05:46 -0700
committerGuy Harris <gharris@sonic.net>2023-04-11 04:11:49 -0700
commit6c8a3facc7f5eb6a03c5a606ebf2c0fcfd0e70cc (patch)
tree03b2546be82d6bd0c7ec0b1260c6e0b9d68f3c7e /print-gre.c
parentcebc5988bdde08a21714f66479bf9a6a5150d2da (diff)
downloadtcpdump-6c8a3facc7f5eb6a03c5a606ebf2c0fcfd0e70cc.tar.gz
Add support for dissecting RFC 2332 NHRP.
This is from the OpenBSD tcpdump.
Diffstat (limited to 'print-gre.c')
-rw-r--r--print-gre.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/print-gre.c b/print-gre.c
index 40496ca7..25c6ac2f 100644
--- a/print-gre.c
+++ b/print-gre.c
@@ -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);
}