diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-12-20 05:35:29 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-12-20 05:35:29 +0000 |
commit | c5e22ceda7475551ce36e74cebca688ef0472ee8 (patch) | |
tree | 2587cbb5c31f65afc60711d38d5dcc79a5a689e6 /epan/dissectors/packet-ldap.c | |
parent | 93cdc8bba37d601a0e3f8b92b80a93d980454ff5 (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-ldap.c')
-rw-r--r-- | epan/dissectors/packet-ldap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c index e0f98257bc..8652827fbb 100644 --- a/epan/dissectors/packet-ldap.c +++ b/epan/dissectors/packet-ldap.c @@ -4628,7 +4628,7 @@ this_was_not_normal_ldap: guint32 old_start_tls_frame; /* temporarily dissect this port as SSL */ - dissector_delete("tcp.port", tcp_port, ldap_handle); + dissector_delete_uint("tcp.port", tcp_port, ldap_handle); ssl_dissector_add(tcp_port, "ldap", TRUE); old_start_tls_frame = ldap_info->start_tls_frame; @@ -4641,7 +4641,7 @@ this_was_not_normal_ldap: ssl_dissector_delete(tcp_port, "ldap", TRUE); /* restore ldap as the dissector for this port */ - dissector_add("tcp.port", tcp_port, ldap_handle); + dissector_add_uint("tcp.port", tcp_port, ldap_handle); /* we are done */ return; @@ -5651,10 +5651,10 @@ proto_reg_handoff_ldap(void) dissector_handle_t cldap_handle; ldap_handle = find_dissector("ldap"); - dissector_add("tcp.port", TCP_PORT_GLOBALCAT_LDAP, ldap_handle); + dissector_add_uint("tcp.port", TCP_PORT_GLOBALCAT_LDAP, ldap_handle); cldap_handle = create_dissector_handle(dissect_mscldap, proto_cldap); - dissector_add("udp.port", UDP_PORT_CLDAP, cldap_handle); + dissector_add_uint("udp.port", UDP_PORT_CLDAP, cldap_handle); gssapi_handle = find_dissector("gssapi"); gssapi_wrap_handle = find_dissector("gssapi_verf"); @@ -5743,13 +5743,13 @@ prefs_register_ldap(void) if(tcp_port != global_ldap_tcp_port) { if(tcp_port) - dissector_delete("tcp.port", tcp_port, ldap_handle); + dissector_delete_uint("tcp.port", tcp_port, ldap_handle); /* Set our port number for future use */ tcp_port = global_ldap_tcp_port; if(tcp_port) - dissector_add("tcp.port", tcp_port, ldap_handle); + dissector_add_uint("tcp.port", tcp_port, ldap_handle); } |