diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-03-04 22:33:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-03-04 22:33:04 +0000 |
commit | e6886d90ce0ff33ee80acf3c2ea570333d8d5a23 (patch) | |
tree | ace42d9a6e93e75bc092472896430d4bbb32fa34 /capture_loop.h | |
parent | a8b8b3d9ff8b0c57008f109d7246ddb60cb31965 (diff) |
When capturing, we only support writing to libpcap files. Given that,
bypass Wiretap; that means we don't have to run the packet through
wtap_process_pcap_packet() and then undo that conversion in Wiretap if
we're just going to write it out, shortening the code path.
svn path=/trunk/; revision=17461
Diffstat (limited to 'capture_loop.h')
-rw-r--r-- | capture_loop.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/capture_loop.h b/capture_loop.h index defb31110b..bfdf734388 100644 --- a/capture_loop.h +++ b/capture_loop.h @@ -118,9 +118,11 @@ typedef struct _loop_data { enum { PIPOK, PIPEOF, PIPERR, PIPNEXIST } cap_pipe_err; #endif - /* wiretap (output file) */ - wtap_dumper *wtap_pdh; + /* output file */ + FILE *pdh; + int linktype; gint wtap_linktype; + long bytes_written; } loop_data; @@ -152,7 +154,7 @@ extern gboolean capture_loop_open_output(capture_options *capture_opts, int *save_file_fd, char *errmsg, int errmsg_len); extern gboolean -capture_loop_init_wiretap_output(capture_options *capture_opts, int save_file_fd, loop_data *ld, char *errmsg, int errmsg_len); +capture_loop_init_output(capture_options *capture_opts, int save_file_fd, loop_data *ld, char *errmsg, int errmsg_len); extern gboolean capture_loop_close_output(capture_options *capture_opts, loop_data *ld, int *err_close); |