From d7e874c5d05b353cece337c72fddafde466a321e Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Mon, 31 Oct 2016 08:27:14 +0100 Subject: PW_ACH: Use proper symbolic names Collect all used PW Associated Channel Types and use them in the subdissector table registrations. Change-Id: I5d196bceefdb4560b1f4388ff86898e316e5e2ae Reviewed-on: https://code.wireshark.org/review/18590 Reviewed-by: Jaap Keuter Petri-Dish: Jaap Keuter Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/dissectors/packet-mplstp-oam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-mplstp-oam.c') diff --git a/epan/dissectors/packet-mplstp-oam.c b/epan/dissectors/packet-mplstp-oam.c index 9771f5bd2f..6b17ab7bc8 100644 --- a/epan/dissectors/packet-mplstp-oam.c +++ b/epan/dissectors/packet-mplstp-oam.c @@ -29,6 +29,7 @@ #include "config.h" #include #include "packet-bfd.h" +#include "packet-mpls.h" void proto_register_mplstp_lock(void); void proto_register_mplstp_fm(void); @@ -344,7 +345,7 @@ proto_reg_handoff_mplstp_fm(void) dissector_handle_t mplstp_fm_handle; mplstp_fm_handle = create_dissector_handle( dissect_mplstp_fm, proto_mplstp_fm ); - dissector_add_uint("pwach.channel_type", 0x0058, mplstp_fm_handle); /* KM: MPLSTP FM, RFC 6427 */ + dissector_add_uint("pwach.channel_type", PW_ACH_TYPE_MPLSTP_FM, mplstp_fm_handle); } /* -- cgit v1.2.3