aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-imf.h
diff options
context:
space:
mode:
authorGraeme Lunt <graeme.lunt@smhs.co.uk>2007-07-14 09:15:02 +0000
committerGraeme Lunt <graeme.lunt@smhs.co.uk>2007-07-14 09:15:02 +0000
commitb1a3d8a5a00eece582f032713a160b1819c1c8e4 (patch)
treedea1ac5152b6b103c9189dedc72ed59e4d94d4e6 /epan/dissectors/packet-imf.h
parentcf24e2c10447242730f20f8d8c6c2a74e095feb7 (diff)
Expose a function (imf_find_field_end()) and
make the field format dissection case-insensitive. svn path=/trunk/; revision=22310
Diffstat (limited to 'epan/dissectors/packet-imf.h')
-rw-r--r--epan/dissectors/packet-imf.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/epan/dissectors/packet-imf.h b/epan/dissectors/packet-imf.h
new file mode 100644
index 0000000000..8bf0972521
--- /dev/null
+++ b/epan/dissectors/packet-imf.h
@@ -0,0 +1,34 @@
+/* packet-imf.h
+ * Routines for Internet Message Format (IMF) packet disassembly
+ *
+ * $Id$
+ *
+ * Copyright (c) 2007 by Graeme Lunt
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1999 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+/* 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);
+