diff options
author | Michael Mann <mmann78@netscape.net> | 2015-08-18 23:14:09 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-01 21:42:51 +0000 |
commit | ad1b785fe80df6ecffee396a617960e1af390274 (patch) | |
tree | 0243a68966024410257dc7004688bb3f3ef3869d /epan/dissectors/packet-udp.h | |
parent | 69e61db3aea6fa70e8ff38c9184b0206ce85ebd3 (diff) |
udp_dissect_pdus follow-up
Add heuristic support
Better documentation
Change-Id: I236c1f4d3613aa58d608aee0e5edc40c3b158d25
Reviewed-on: https://code.wireshark.org/review/10120
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-udp.h')
-rw-r--r-- | epan/dissectors/packet-udp.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/epan/dissectors/packet-udp.h b/epan/dissectors/packet-udp.h index 79d1af492f..a3c9bc646d 100644 --- a/epan/dissectors/packet-udp.h +++ b/epan/dissectors/packet-udp.h @@ -115,20 +115,22 @@ WS_DLL_PUBLIC struct udp_analysis *get_udp_conversation_data(conversation_t *, * fixed-length chunk of data that contains enough information * to determine the length of the PDU, followed by rest of the PDU. * - * The first three arguments are the arguments passed to the dissector - * that calls this routine. - * - * "fixed_len" is the length of the fixed-length part of the PDU. - * - * "get_pdu_len()" is a routine called to get the length of the PDU from + * @param tvb the tvbuff with the (remaining) packet data passed to dissector + * @param pinfo the packet info of this packet (additional info) passed to dissector + * @param tree the protocol tree to be build or NULL passed to dissector + * @param fixed_len is the length of the fixed-length part of the PDU. + * @param heuristic_check is the optional routine called to see if dissection + * should be done; it's passed "pinfo", "tvb", "offset" and "dissector_data". + * @param get_pdu_len is a routine called to get the length of the PDU from * the fixed-length part of the PDU; it's passed "pinfo", "tvb", "offset" and * "dissector_data". - * - * "dissect_pdu()" is the routine to dissect a PDU. + * @param dissect_pdu the sub-dissector to be called + * @param dissector_data parameter to pass to subdissector */ -WS_DLL_PUBLIC void +WS_DLL_PUBLIC int udp_dissect_pdus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, - guint fixed_len, guint (*get_pdu_len)(packet_info *, tvbuff_t *, int, void*), + guint fixed_len, gboolean (*heuristic_check)(packet_info *, tvbuff_t *, int, void*), + guint (*get_pdu_len)(packet_info *, tvbuff_t *, int, void*), new_dissector_t dissect_pdu, void* dissector_data); #ifdef __cplusplus |