summaryrefslogtreecommitdiff
path: root/print.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 /print.h
parent11eda6b97b594d58541897a06d98e97f13a9aa2b (diff)
downloadwireshark-5800abad4620cbd3885b2460ee0383ced0cf6e3f.tar.gz
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 'print.h')
-rw-r--r--print.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/print.h b/print.h
index 1187651ff0..cf81d7d79e 100644
--- a/print.h
+++ b/print.h
@@ -137,6 +137,10 @@ extern void write_csv_preamble(FILE *fh);
extern void proto_tree_write_csv(epan_dissect_t *edt, FILE *fh);
extern void write_csv_finale(FILE *fh);
+extern void write_carrays_preamble(FILE *fh);
+extern void proto_tree_write_carrays(const guint8 *pd, guint32 len, guint32 num, FILE *fh);
+extern void write_carrays_finale(FILE *fh);
+
extern void write_fields_preamble(output_fields_t* fields, FILE *fh);
extern void proto_tree_write_fields(output_fields_t* fields, epan_dissect_t *edt, FILE *fh);
extern void write_fields_finale(output_fields_t* fields, FILE *fh);