diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-20 09:43:28 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-20 16:43:56 +0000 |
commit | ce3d2ff3ded3eccb9d64c6cb46c64ad8f8a837b9 (patch) | |
tree | 8a4ddc4ec1607716254ada75c607094da614f131 /epan/dissectors/packet-pw-eth.c | |
parent | 4df6b5178496422ddfc3b9256af763b847d1a2c7 (diff) |
Rename dissector_add_handle() to dissector_add_for_decode_as().
Hopefully that name makes it clear what the routiner's purpose is, and
will encourage people to use it rather than using dissector_add_uint()
with a bogus integer value.
Change-Id: Ic5be456d0ad40b176aab01712ab7b13aed5de2a8
Reviewed-on: https://code.wireshark.org/review/2483
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 966dc3d563..96a81c19ad 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_handle("mpls.label", pw_eth_handle_cw); + dissector_add_for_decode_as("mpls.label", pw_eth_handle_cw); pw_eth_handle_nocw = find_dissector("pw_eth_nocw"); - dissector_add_handle("mpls.label", pw_eth_handle_nocw); + dissector_add_for_decode_as("mpls.label", pw_eth_handle_nocw); pw_eth_handle_heuristic = find_dissector("pw_eth_heuristic"); - dissector_add_handle("mpls.label", pw_eth_handle_heuristic); + dissector_add_for_decode_as("mpls.label", pw_eth_handle_heuristic); } /* |