aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tftp.h
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2014-06-04 23:35:38 +0100
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2014-06-05 18:00:49 +0000
commit29222aba7c110c766f752800c2f2a4a4b5b51271 (patch)
tree705f6997bc162c5a631b3bd5eb6f9e1e4c96c59b /epan/dissectors/packet-tftp.h
parent6ac68b1fd5e549723ac65f1bad1e1a3c44716149 (diff)
Add Object (file) export for files transferred over TFTP.
Updated following review comments. Change-Id: I56e70d8f8e332d2aea604ceec16c980ad890fa58 Reviewed-on: https://code.wireshark.org/review/1885 Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Diffstat (limited to 'epan/dissectors/packet-tftp.h')
-rw-r--r--epan/dissectors/packet-tftp.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tftp.h b/epan/dissectors/packet-tftp.h
new file mode 100644
index 0000000000..d8c78ad0f7
--- /dev/null
+++ b/epan/dissectors/packet-tftp.h
@@ -0,0 +1,42 @@
+/* packet-tftp.h
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef __PACKET_TFTP_H__
+#define __PACKET_TFTP_H__
+
+#include <epan/packet.h>
+
+/* When export file data, store list of separate blocks */
+typedef struct file_block_t {
+ void *data;
+ guint length;
+} file_block_t;
+
+/* Used for TFTP Export Object feature */
+typedef struct _tftp_eo_t {
+ guint32 pkt_num;
+ gchar *filename;
+ guint32 payload_len;
+ GSList *block_list;
+} tftp_eo_t;
+
+
+#endif /* __PACKET_TFTP_H__ */