diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-19 10:54:01 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-19 17:54:38 +0000 |
commit | 3adc5b8c805878fb3bb299f7b9ce329c45675956 (patch) | |
tree | 953390c68151adc757ba6b863611478c005310b2 /epan/dissectors/packet-pw-eth.c | |
parent | daa70feddcd3ff35f2771b0b8c4e1be8e5a4e7ea (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-eth.c')
-rw-r--r-- | epan/dissectors/packet-pw-eth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-pw-eth.c b/epan/dissectors/packet-pw-eth.c index f1ecf9a562..966dc3d563 100644 --- a/epan/dissectors/packet-pw-eth.c +++ b/epan/dissectors/packet-pw-eth.c @@ -209,13 +209,13 @@ proto_reg_handoff_pw_eth(void) eth_withoutfcs_handle = find_dissector("eth_withoutfcs"); pw_eth_handle_cw = find_dissector("pw_eth_cw"); - dissector_add_uint("mpls.label", MPLS_LABEL_INVALID, pw_eth_handle_cw); + dissector_add_handle("mpls.label", pw_eth_handle_cw); pw_eth_handle_nocw = find_dissector("pw_eth_nocw"); - dissector_add_uint("mpls.label", MPLS_LABEL_INVALID, pw_eth_handle_nocw); + dissector_add_handle("mpls.label", pw_eth_handle_nocw); pw_eth_handle_heuristic = find_dissector("pw_eth_heuristic"); - dissector_add_uint("mpls.label", MPLS_LABEL_INVALID, pw_eth_handle_heuristic); + dissector_add_handle("mpls.label", pw_eth_handle_heuristic); } /* |