aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pw-cesopsn.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-19 10:54:01 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-19 17:54:38 +0000
commit3adc5b8c805878fb3bb299f7b9ce329c45675956 (patch)
tree953390c68151adc757ba6b863611478c005310b2 /epan/dissectors/packet-pw-cesopsn.c
parentdaa70feddcd3ff35f2771b0b8c4e1be8e5a4e7ea (diff)
To make a dissector available for Decode As, just use dissector_add_handle().
No need to use dissector_add_uint() with a bogus value. Change-Id: Ia5e51d199487ba14cd671c7df44231a0d407c50b Reviewed-on: https://code.wireshark.org/review/2431 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-pw-cesopsn.c')
-rw-r--r--epan/dissectors/packet-pw-cesopsn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pw-cesopsn.c b/epan/dissectors/packet-pw-cesopsn.c
index 17bd89878b..5e11207459 100644
--- a/epan/dissectors/packet-pw-cesopsn.c
+++ b/epan/dissectors/packet-pw-cesopsn.c
@@ -456,7 +456,8 @@ void proto_reg_handoff_pw_cesopsn(void)
{
data_handle = find_dissector("data");
pw_padding_handle = find_dissector("pw_padding");
- dissector_add_uint("mpls.label", MPLS_LABEL_INVALID, find_dissector("pw_cesopsn_mpls"));
- dissector_add_handle("udp.port", find_dissector("pw_cesopsn_udp")); /* For Decode-As */
+ /* For Decode As */
+ dissector_add_handle("mpls.label", find_dissector("pw_cesopsn_mpls"));
+ dissector_add_handle("udp.port", find_dissector("pw_cesopsn_udp"));
return;
}