summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-imf.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/packet-imf.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-imf.h')
-rw-r--r--epan/dissectors/packet-imf.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/epan/dissectors/packet-imf.h b/epan/dissectors/packet-imf.h
new file mode 100644
index 00000000..4acebaa5
--- /dev/null
+++ b/epan/dissectors/packet-imf.h
@@ -0,0 +1,25 @@
+/* packet-imf.h
+ * Routines for Internet Message Format (IMF) packet disassembly
+ *
+ * Copyright (c) 2007 by Graeme Lunt
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1999 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef __PACKET_IMF_H__
+#define __PACKET_IMF_H__
+
+#include <epan/packet.h>
+
+/* Find the end of the next IMF field in the tvb.
+ * This is not necessarily the first \r\n as there may be continuation lines.
+ *
+ * If we have found the last field (terminated by \r\n\r\n) we indicate this in last_field .
+ */
+int imf_find_field_end(tvbuff_t *tvb, int offset, gint max_length, gboolean *last_field);
+
+#endif /* __PACKET_IMF_H__ */