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-rtnet.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-rtnet.c')
-rw-r--r-- | epan/dissectors/packet-rtnet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-rtnet.c b/epan/dissectors/packet-rtnet.c index 96ae14e5e4..c1eff8458a 100644 --- a/epan/dissectors/packet-rtnet.c +++ b/epan/dissectors/packet-rtnet.c @@ -573,11 +573,11 @@ dissect_rtmac(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { if (ver == 1) { type_str = match_strval(type, rtmac_type_vals); if (!type_str) { - dissector = dissector_get_port_handle(ethertype_table, type); + dissector = dissector_get_uint_handle(ethertype_table, type); } } else { if (flags & RTMAC_FLAG_TUNNEL) { - dissector = dissector_get_port_handle(ethertype_table, type); + dissector = dissector_get_uint_handle(ethertype_table, type); } } if (!dissector) @@ -1338,7 +1338,7 @@ proto_reg_handoff_rtmac(void) { dissector_handle_t rtmac_handle; rtmac_handle = create_dissector_handle(dissect_rtmac, proto_rtmac); - dissector_add("ethertype", ETHERTYPE_RTMAC, rtmac_handle); + dissector_add_uint("ethertype", ETHERTYPE_RTMAC, rtmac_handle); ethertype_table = find_dissector_table("ethertype"); } @@ -1348,5 +1348,5 @@ proto_reg_handoff_rtcfg(void) { data_handle = find_dissector("data"); rtcfg_handle = create_dissector_handle(dissect_rtcfg, proto_rtcfg); - dissector_add("ethertype", ETHERTYPE_RTCFG, rtcfg_handle); + dissector_add_uint("ethertype", ETHERTYPE_RTCFG, rtcfg_handle); } |