aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fr.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-20 05:35:29 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-20 05:35:29 +0000
commitc5e22ceda7475551ce36e74cebca688ef0472ee8 (patch)
tree2587cbb5c31f65afc60711d38d5dcc79a5a689e6 /epan/dissectors/packet-fr.c
parent93cdc8bba37d601a0e3f8b92b80a93d980454ff5 (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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-fr.c')
-rw-r--r--epan/dissectors/packet-fr.c12
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");