aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bt-utp.h
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2021-10-12 22:34:14 -0400
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-10-19 18:53:46 +0000
commitdb8e63614ebfab7497bc44532411261256058625 (patch)
tree29e565d11f3e5ec4a4a5a6b835894ed39151ab29 /epan/dissectors/packet-bt-utp.h
parent9a8feb8abd84366ca009c56ae3aa67a62e03dee7 (diff)
BT-uTP: Hand to bittorrent dissector, dissect multiple PDUs
Handle uTP payload to the bittorrent dissector. Implement dissect PDUs to handle more than one bittorrent PDU in a uTP payload. Implement basic multisegment PDU tracking; not enough to actually desegment, but enough to provide a hint to the start offset of the next PDU when a PDU does span segments. (Provided that they're in order, but OOO handling isn't implemented yet either.) Improves #8792.
Diffstat (limited to 'epan/dissectors/packet-bt-utp.h')
-rw-r--r--epan/dissectors/packet-bt-utp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bt-utp.h b/epan/dissectors/packet-bt-utp.h
index e21e62cee4..4074c0742b 100644
--- a/epan/dissectors/packet-bt-utp.h
+++ b/epan/dissectors/packet-bt-utp.h
@@ -19,13 +19,12 @@
extern "C" {
#endif /* __cplusplus */
-#if 0
-WS_DLL_PUBLIC void
+/* bittorent is the only protocol on uTP, so extern not WS_DLL_PUBLIC */
+extern void
utp_dissect_pdus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
gboolean proto_desegment, guint fixed_len,
guint (*get_pdu_len)(packet_info *, tvbuff_t *, int, void*),
dissector_t dissect_pdu, void* dissector_data);
-#endif
#ifdef __cplusplus
}