From db8e63614ebfab7497bc44532411261256058625 Mon Sep 17 00:00:00 2001 From: John Thacker Date: Tue, 12 Oct 2021 22:34:14 -0400 Subject: 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. --- epan/dissectors/packet-bt-utp.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-bt-utp.h') 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 } -- cgit v1.2.3