diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-26 17:44:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-26 17:44:17 +0000 |
commit | 2d78050fd56b8188aa5a65ad2667e301b60eea45 (patch) | |
tree | b54d4adac6de0a196b8bb8a67b34fe186c21378f /epan/packet.h | |
parent | Adding upstream version 4.2.2. (diff) | |
download | wireshark-2d78050fd56b8188aa5a65ad2667e301b60eea45.tar.xz wireshark-2d78050fd56b8188aa5a65ad2667e301b60eea45.zip |
Adding upstream version 4.2.4.upstream/4.2.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | epan/packet.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h index 63127984..ecfa85a0 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -887,6 +887,20 @@ WS_DLL_PUBLIC gboolean postdissectors_want_hfids(void); WS_DLL_PUBLIC void prime_epan_dissect_with_postdissector_wanted_hfids(epan_dissect_t *edt); +/** Increment the dissection depth. + * This should be used to limit recursion outside the tree depth checks in + * call_dissector and dissector_try_heuristic. + * @param pinfo Packet Info. + */ + +WS_DLL_PUBLIC void increment_dissection_depth(packet_info *pinfo); + +/** Decrement the dissection depth. + * @param pinfo Packet Info. + */ + +WS_DLL_PUBLIC void decrement_dissection_depth(packet_info *pinfo); + /** @} */ #ifdef __cplusplus |