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-chdlc.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-chdlc.c')
-rw-r--r-- | epan/dissectors/packet-chdlc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-chdlc.c b/epan/dissectors/packet-chdlc.c index 1f3e31e1d9..61d8a8856a 100644 --- a/epan/dissectors/packet-chdlc.c +++ b/epan/dissectors/packet-chdlc.c @@ -146,7 +146,7 @@ chdlctype(guint16 chdlc_type, tvbuff_t *tvb, int offset_after_chdlctype, } /* do lookup with the subdissector table */ - if (!dissector_try_port(subdissector_table, chdlc_type, next_tvb, pinfo, tree)) { + if (!dissector_try_uint(subdissector_table, chdlc_type, next_tvb, pinfo, tree)) { if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_add_fstr(pinfo->cinfo, COL_PROTOCOL, "0x%04x", chdlc_type); call_dissector(data_handle,next_tvb, pinfo, tree); @@ -245,8 +245,8 @@ proto_reg_handoff_chdlc(void) data_handle = find_dissector("data"); chdlc_handle = find_dissector("chdlc"); - dissector_add("wtap_encap", WTAP_ENCAP_CHDLC, chdlc_handle); - dissector_add("wtap_encap", WTAP_ENCAP_CHDLC_WITH_PHDR, chdlc_handle); + dissector_add_uint("wtap_encap", WTAP_ENCAP_CHDLC, chdlc_handle); + dissector_add_uint("wtap_encap", WTAP_ENCAP_CHDLC_WITH_PHDR, chdlc_handle); } #define SLARP_REQUEST 0 @@ -363,5 +363,5 @@ proto_reg_handoff_slarp(void) dissector_handle_t slarp_handle; slarp_handle = create_dissector_handle(dissect_slarp, proto_slarp); - dissector_add("chdlctype", CISCO_SLARP, slarp_handle); + dissector_add_uint("chdlctype", CISCO_SLARP, slarp_handle); } |