From e6886d90ce0ff33ee80acf3c2ea570333d8d5a23 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 4 Mar 2006 22:33:04 +0000 Subject: 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 --- ringbuffer.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ringbuffer.h') 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); -- cgit v1.2.3