diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-12-20 05:35:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-12-20 05:35:29 +0000 |
commit | a8bc4a0d136d7a68e8f006aec75a8e63191948c9 (patch) | |
tree | 2587cbb5c31f65afc60711d38d5dcc79a5a689e6 /epan/dissectors/packet-fr.c | |
parent | 7e16ec5b991b12020f7bdc135fd4943858bc3218 (diff) |
Rename the routines that handle dissector tables with unsigned integer
keys to have _uint in their names, to match the routines that handle
dissector tables with string keys. (Using _port can confuse people into
thinking they're intended solely for use with TCP/UDP/etc. ports when,
in fact, they work better for things such as Ethernet types, where the
binding of particular values to particular protocols are a lot
stronger.)
svn path=/trunk/; revision=35224
Diffstat (limited to 'epan/dissectors/packet-fr.c')
-rw-r--r-- | epan/dissectors/packet-fr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-fr.c b/epan/dissectors/packet-fr.c index fe02d972d5..7b23e26c8d 100644 --- a/epan/dissectors/packet-fr.c +++ b/epan/dissectors/packet-fr.c @@ -732,9 +732,9 @@ static void dissect_fr_nlpid(tvbuff_t *tvb, int offset, packet_info *pinfo, * Either that, or it's Q.933 iff the DLCI is 0. */ next_tvb = tvb_new_subset_remaining(tvb,offset); - if (dissector_try_port(osinl_subdissector_table, fr_nlpid, next_tvb, + if (dissector_try_uint(osinl_subdissector_table, fr_nlpid, next_tvb, pinfo, tree) || - dissector_try_port(fr_osinl_subdissector_table, fr_nlpid, next_tvb, + dissector_try_uint(fr_osinl_subdissector_table, fr_nlpid, next_tvb, pinfo, tree)) { /* * Yes, we got a match. Add the NLPID as a hidden item, @@ -777,7 +777,7 @@ static void dissect_fr_nlpid(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_item_set_end(ti, tvb, offset); } next_tvb = tvb_new_subset_remaining(tvb,offset); - if (!dissector_try_port(fr_subdissector_table,fr_nlpid, + if (!dissector_try_uint(fr_subdissector_table,fr_nlpid, next_tvb, pinfo, tree)) call_dissector(data_handle,next_tvb, pinfo, tree); break; @@ -937,11 +937,11 @@ void proto_reg_handoff_fr(void) dissector_handle_t fr_handle, fr_phdr_handle; fr_handle = find_dissector("fr"); - dissector_add("gre.proto", ETHERTYPE_RAW_FR, fr_handle); - dissector_add("wtap_encap", WTAP_ENCAP_FRELAY, fr_handle); + dissector_add_uint("gre.proto", ETHERTYPE_RAW_FR, fr_handle); + dissector_add_uint("wtap_encap", WTAP_ENCAP_FRELAY, fr_handle); fr_phdr_handle = create_dissector_handle(dissect_fr_phdr, proto_fr); - dissector_add("wtap_encap", WTAP_ENCAP_FRELAY_WITH_PHDR, fr_phdr_handle); + dissector_add_uint("wtap_encap", WTAP_ENCAP_FRELAY_WITH_PHDR, fr_phdr_handle); eth_withfcs_handle = find_dissector("eth_withfcs"); gprs_ns_handle = find_dissector("gprs_ns"); |