aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tcp.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-31 12:18:14 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-31 12:18:14 +0000
commit675b8122f0b9cab9c76c7b33907e145f61ce1b42 (patch)
tree5e9f8d4fe8f3f669337825339ae5964e5b4fb604 /epan/dissectors/packet-tcp.c
parent2e13d25f44d1ccf0bf59da9b971e6922cfb5f08b (diff)
Register tcp by name.
To be used in User DLT's and Lua scripts. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36414 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-tcp.c')
-rw-r--r--epan/dissectors/packet-tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c
index 4d79fe46d6..18d5381379 100644
--- a/epan/dissectors/packet-tcp.c
+++ b/epan/dissectors/packet-tcp.c
@@ -4941,6 +4941,7 @@ proto_register_tcp(void)
proto_tcp = proto_register_protocol("Transmission Control Protocol",
"TCP", "tcp");
+ register_dissector("tcp", dissect_tcp, proto_tcp);
proto_register_field_array(proto_tcp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
@@ -5001,7 +5002,7 @@ proto_reg_handoff_tcp(void)
{
dissector_handle_t tcp_handle;
- tcp_handle = create_dissector_handle(dissect_tcp, proto_tcp);
+ tcp_handle = find_dissector("tcp");
dissector_add_uint("ip.proto", IP_PROTO_TCP, tcp_handle);
data_handle = find_dissector("data");
tcp_tap = register_tap("tcp");