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 /doc | |
parent | 7e16ec5b991b12020f7bdc135fd4943858bc3218 (diff) | |
download | wireshark-a8bc4a0d136d7a68e8f006aec75a8e63191948c9.tar.gz wireshark-a8bc4a0d136d7a68e8f006aec75a8e63191948c9.tar.bz2 wireshark-a8bc4a0d136d7a68e8f006aec75a8e63191948c9.zip |
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 'doc')
-rw-r--r-- | doc/README.developer | 14 | ||||
-rw-r--r-- | doc/README.heuristic | 2 | ||||
-rw-r--r-- | doc/README.python | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/doc/README.developer b/doc/README.developer index 1d944177c2..49392c98c6 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -1063,12 +1063,12 @@ proto_reg_handoff_PROTOABBREV(void) function (proto_reg_handoff). */ - dissector_delete("tcp.port", currentPort, PROTOABBREV_handle); + dissector_delete_uint("tcp.port", currentPort, PROTOABBREV_handle); } currentPort = gPORT_PREF; - dissector_add("tcp.port", currentPort, PROTOABBREV_handle); + dissector_add_uint("tcp.port", currentPort, PROTOABBREV_handle); } @@ -1088,7 +1088,7 @@ proto_reg_handoff_PROTOABBREV(void) */ PROTOABBREV_handle = new_create_dissector_handle(dissect_PROTOABBREV, proto_PROTOABBREV); - dissector_add("PARENT_SUBFIELD", ID_VALUE, PROTOABBREV_handle); + dissector_add_uint("PARENT_SUBFIELD", ID_VALUE, PROTOABBREV_handle); } #endif @@ -3661,10 +3661,10 @@ example, stolen from packet-dns.c: mdns_udp_handle = create_dissector_handle(dissect_mdns_udp, proto_dns); - dissector_add("udp.port", UDP_PORT_DNS, dns_udp_handle); - dissector_add("tcp.port", TCP_PORT_DNS, dns_tcp_handle); - dissector_add("udp.port", UDP_PORT_MDNS, mdns_udp_handle); - dissector_add("tcp.port", TCP_PORT_MDNS, dns_tcp_handle); + dissector_add_uint("udp.port", UDP_PORT_DNS, dns_udp_handle); + dissector_add_uint("tcp.port", TCP_PORT_DNS, dns_tcp_handle); + dissector_add_uint("udp.port", UDP_PORT_MDNS, mdns_udp_handle); + dissector_add_uint("tcp.port", TCP_PORT_MDNS, dns_tcp_handle); The dissect_dns_udp function does very little work and calls dissect_dns_common, while dissect_dns_tcp calls tcp_dissect_pdus with a diff --git a/doc/README.heuristic b/doc/README.heuristic index 8158135cf2..4945f6210c 100644 --- a/doc/README.heuristic +++ b/doc/README.heuristic @@ -205,7 +205,7 @@ proto_reg_handoff_PROTOABBREV(void) /* register as normal dissector for IP as well */ PROTOABBREV_handle = new_create_dissector_handle(dissect_PROTOABBREV, proto_PROTOABBREV); - dissector_add("ip.proto", IP_PROTO_PROTOABBREV, PROTOABBREV_handle); + dissector_add_uint("ip.proto", IP_PROTO_PROTOABBREV, PROTOABBREV_handle); PROTOABBREV_inited = TRUE; } } diff --git a/doc/README.python b/doc/README.python index 0d6cb8a901..cfcf4b41eb 100644 --- a/doc/README.python +++ b/doc/README.python @@ -76,7 +76,7 @@ CLASSES | | protocol_ids(self) | defined a list of tuples containing three values. Each tuple is defining - | the parameters of dissector_add(). This function MUST be defined when + | the parameters of dissector_add_uint(). This function MUST be defined when | implementing the dissector of a specific protocol. | | register_handoff(self) |