aboutsummaryrefslogtreecommitdiffstats
path: root/ringbuffer.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2006-03-04 22:33:04 +0000
committerGuy Harris <guy@alum.mit.edu>2006-03-04 22:33:04 +0000
commite6886d90ce0ff33ee80acf3c2ea570333d8d5a23 (patch)
treeace42d9a6e93e75bc092472896430d4bbb32fa34 /ringbuffer.h
parenta8b8b3d9ff8b0c57008f109d7246ddb60cb31965 (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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/ringbuffer.h b/ringbuffer.h
index 396963b..8989f5c 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);