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 /ringbuffer.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 'ringbuffer.h')
-rw-r--r-- | ringbuffer.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ringbuffer.h b/ringbuffer.h index 396963b7bf..8989f5c4aa 100644 --- a/ringbuffer.h +++ b/ringbuffer.h @@ -40,10 +40,9 @@ int ringbuf_init(const char *capture_name, guint num_files); const gchar *ringbuf_current_filename(void); -wtap_dumper* ringbuf_init_wtap_dump_fdopen(int filetype, int linktype, - int snaplen, int *err); -gboolean ringbuf_switch_file(wtap_dumper **pdh, gchar **save_file, int *save_file_fd, int *err); -gboolean ringbuf_wtap_dump_close(gchar **save_file, int *err); +FILE *ringbuf_init_libpcap_fdopen(int linktype, int snaplen, int *err); +gboolean ringbuf_switch_file(FILE **pdh, gchar **save_file, int *save_file_fd, int *err); +gboolean ringbuf_libpcap_dump_close(gchar **save_file, int *err); void ringbuf_free(void); void ringbuf_error_cleanup(void); |