aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cdp.c
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2020-01-10 09:50:09 +0100
committerGuy Harris <guy@alum.mit.edu>2020-01-10 23:36:33 +0000
commita8c7beb07074168a15fc1c99972acc09701fde71 (patch)
tree66d389e0c972d97396ee97f221970938d311eb64 /epan/dissectors/packet-cdp.c
parent58949b7ff14ff8f052704c27718c90be4b234449 (diff)
Use symbolic values for Cisco's LLC PIDs
Change-Id: I4cc99cef1e52fcce308608dd95befa2286787b16 Reviewed-on: https://code.wireshark.org/review/35728 Petri-Dish: Jörg Mayer <jmayer@loplof.de> Tested-by: Petri Dish Buildbot Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-cdp.c')
-rw-r--r--epan/dissectors/packet-cdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-cdp.c b/epan/dissectors/packet-cdp.c
index 45cdd37b8a..3e7f115221 100644
--- a/epan/dissectors/packet-cdp.c
+++ b/epan/dissectors/packet-cdp.c
@@ -17,7 +17,7 @@
#include <epan/in_cksum.h>
#include <epan/nlpid.h>
#include <epan/etypes.h>
-
+#include <epan/cisco_pid.h>
/*
* See
@@ -1503,7 +1503,7 @@ proto_reg_handoff_cdp(void)
dissector_handle_t cdp_handle;
cdp_handle = create_dissector_handle(dissect_cdp, proto_cdp);
- dissector_add_uint("llc.cisco_pid", 0x2000, cdp_handle);
+ dissector_add_uint("llc.cisco_pid", CISCO_PID_CDP, cdp_handle);
dissector_add_uint("chdlc.protocol", 0x2000, cdp_handle);
dissector_add_uint("ppp.protocol", 0x0207, cdp_handle);
dissector_add_uint("gre.proto", 0x2000, cdp_handle);