aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpls.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-mpls.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-mpls.c')
-rw-r--r--epan/dissectors/packet-mpls.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/epan/dissectors/packet-mpls.c b/epan/dissectors/packet-mpls.c
index 4e83dfcbe3..07448736cc 100644
--- a/epan/dissectors/packet-mpls.c
+++ b/epan/dissectors/packet-mpls.c
@@ -411,7 +411,7 @@ dissect_pw_ach(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* XXX perhaps this code should be reconsidered */
/* non-standard extension, therefore controlled by option*/
/* appeared in revision 10862 from Carlos M. Pignataro */
- if (!dissector_try_port(ppp_subdissector_table, channel_type,
+ if (!dissector_try_uint(ppp_subdissector_table, channel_type,
next_tvb, pinfo, tree)) {
call_dissector(dissector_data, next_tvb, pinfo, tree);
}
@@ -764,7 +764,7 @@ dissect_mpls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
next_tvb = tvb_new_subset_remaining(tvb, offset);
- if ( !dissector_try_port(mpls_subdissector_table, label, next_tvb, pinfo, tree))
+ if ( !dissector_try_uint(mpls_subdissector_table, label, next_tvb, pinfo, tree))
{
switch ( mpls_default_payload )
{
@@ -973,18 +973,18 @@ proto_reg_handoff_mpls(void)
ppp_subdissector_table = find_dissector_table("ppp.protocol");
mpls_handle = find_dissector("mpls");
- dissector_add("ethertype", ETHERTYPE_MPLS, mpls_handle);
- dissector_add("ethertype", ETHERTYPE_MPLS_MULTI, mpls_handle);
- dissector_add("ppp.protocol", PPP_MPLS_UNI, mpls_handle);
- dissector_add("ppp.protocol", PPP_MPLS_MULTI, mpls_handle);
- dissector_add("chdlctype", ETHERTYPE_MPLS, mpls_handle);
- dissector_add("chdlctype", ETHERTYPE_MPLS_MULTI, mpls_handle);
- dissector_add("gre.proto", ETHERTYPE_MPLS, mpls_handle);
- dissector_add("gre.proto", ETHERTYPE_MPLS_MULTI, mpls_handle);
- dissector_add("ip.proto", IP_PROTO_MPLS_IN_IP, mpls_handle);
+ dissector_add_uint("ethertype", ETHERTYPE_MPLS, mpls_handle);
+ dissector_add_uint("ethertype", ETHERTYPE_MPLS_MULTI, mpls_handle);
+ dissector_add_uint("ppp.protocol", PPP_MPLS_UNI, mpls_handle);
+ dissector_add_uint("ppp.protocol", PPP_MPLS_MULTI, mpls_handle);
+ dissector_add_uint("chdlctype", ETHERTYPE_MPLS, mpls_handle);
+ dissector_add_uint("chdlctype", ETHERTYPE_MPLS_MULTI, mpls_handle);
+ dissector_add_uint("gre.proto", ETHERTYPE_MPLS, mpls_handle);
+ dissector_add_uint("gre.proto", ETHERTYPE_MPLS_MULTI, mpls_handle);
+ dissector_add_uint("ip.proto", IP_PROTO_MPLS_IN_IP, mpls_handle);
mpls_handle = find_dissector("mplspwcw");
- dissector_add( "mpls.label", LABEL_INVALID, mpls_handle );
+ dissector_add_uint( "mpls.label", LABEL_INVALID, mpls_handle );
dissector_data = find_dissector("data");
dissector_ipv6 = find_dissector("ipv6");