aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-03-11 18:23:16 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-03-11 18:23:16 +0000
commit5800abad4620cbd3885b2460ee0383ced0cf6e3f (patch)
tree7d01e48143e3ccca773587f05b2570e53468a3c7 /file.h
parent11eda6b97b594d58541897a06d98e97f13a9aa2b (diff)
From Francesco Fondelli (bug 2349):
Attached is a patch to export packets data as "C Arrays". I often have the need to [re]send data captured with wireshark using a raw/pf_packet socket. Output format is one char[] per packet, it looks like almost the same as the one produced by "Follow TCP stream". svn path=/trunk/; revision=24604
Diffstat (limited to 'file.h')
-rw-r--r--file.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/file.h b/file.h
index 03bb8a7fd7..89e5b89ce4 100644
--- a/file.h
+++ b/file.h
@@ -336,6 +336,15 @@ cf_print_status_t cf_write_psml_packets(capture_file *cf, print_args_t *print_ar
cf_print_status_t cf_write_csv_packets(capture_file *cf, print_args_t *print_args);
/**
+ * Print (export) the capture file into C Arrays format.
+ *
+ * @param cf the capture file
+ * @param print_args the arguments what and how to export
+ * @return one of cf_print_status_t
+ */
+cf_print_status_t cf_write_carrays_packets(capture_file *cf, print_args_t *print_args);
+
+/**
* Find Packet in protocol tree.
*
* @param cf the capture file