aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@wireshark.org>2017-05-03 10:47:54 +0200
committerMichael Tüxen <tuexen@wireshark.org>2017-05-03 15:32:30 +0000
commit8f6b8e29f9d7a77bf0306315901c3677aa6ec410 (patch)
treed8b9cf8dba74b65444d55b6f77b038d2bbf0a887 /epan
parente9d3cb9a4f0cfd049c553027cbe7a38da22cff7c (diff)
Add support for TCP over UDP.
Add support to configure a port number for encapsulating TCP packets in UDP. Change-Id: I9aea1eda4537b05e76e76ed0417acb34705bad9e Reviewed-on: https://code.wireshark.org/review/21473 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Tüxen <tuexen@wireshark.org>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c
index f7d530bdc3..92a020eed8 100644
--- a/epan/dissectors/packet-tcp.c
+++ b/epan/dissectors/packet-tcp.c
@@ -7505,6 +7505,7 @@ proto_reg_handoff_tcp(void)
capture_dissector_handle_t tcp_cap_handle;
dissector_add_uint("ip.proto", IP_PROTO_TCP, tcp_handle);
+ dissector_add_for_decode_as_with_preference("udp.port", tcp_handle);
data_handle = find_dissector("data");
sport_handle = find_dissector("sport");
tcp_tap = register_tap("tcp");