diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-03-11 18:23:16 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-03-11 18:23:16 +0000 |
commit | 5800abad4620cbd3885b2460ee0383ced0cf6e3f (patch) | |
tree | 7d01e48143e3ccca773587f05b2570e53468a3c7 /print.h | |
parent | 11eda6b97b594d58541897a06d98e97f13a9aa2b (diff) | |
download | wireshark-5800abad4620cbd3885b2460ee0383ced0cf6e3f.tar.gz wireshark-5800abad4620cbd3885b2460ee0383ced0cf6e3f.tar.bz2 wireshark-5800abad4620cbd3885b2460ee0383ced0cf6e3f.zip |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |