diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-04 22:33:04 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-04 22:33:04 +0000 |
commit | fff24dfb1a49de5dad83401768136532a9da6581 (patch) | |
tree | ace42d9a6e93e75bc092472896430d4bbb32fa34 /ringbuffer.h | |
parent | f71f95dfc0cf8b14db11bb3d09a84ee1f7b0d06b (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17461 f5534014-38df-0310-8fa8-9805f1628bb7
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); |