diff options
-rw-r--r-- | capture.c | 2 | ||||
-rw-r--r-- | file.c | 9 | ||||
-rw-r--r-- | file.h | 12 |
3 files changed, 1 insertions, 22 deletions
@@ -361,7 +361,7 @@ capture_input_new_file(capture_session *cap_session, gchar *new_file) /* if we are in real-time mode, open the new file now */ if(capture_opts->real_time_mode) { /* Attempt to open the capture file and set up to read from it. */ - switch(cf_start_tail((capture_file *)cap_session->cf, capture_opts->save_file, is_tempfile, &err)) { + switch(cf_open((capture_file *)cap_session->cf, capture_opts->save_file, is_tempfile, &err)) { case CF_OK: break; case CF_ERROR: @@ -826,15 +826,6 @@ cf_read(capture_file *cf, gboolean reloading) } #ifdef HAVE_LIBPCAP -cf_status_t -cf_start_tail(capture_file *cf, const char *fname, gboolean is_tempfile, int *err) -{ - cf_status_t cf_status; - - cf_status = cf_open(cf, fname, is_tempfile, err); - return cf_status; -} - cf_read_status_t cf_continue_tail(capture_file *cf, volatile int to_read, int *err) { @@ -163,18 +163,6 @@ gboolean cf_read_frame_r(capture_file *cf, const frame_data *fdata, gboolean cf_read_frame(capture_file *cf, frame_data *fdata); /** - * Start reading from the end of a capture file. - * This is used in "Update list of packets in Real-Time". - * - * @param cf the capture file to be read from - * @param fname the filename to be read from - * @param is_tempfile is this a temporary file? - * @param err the error code, if an error had occurred - * @return one of cf_status_t - */ -cf_status_t cf_start_tail(capture_file *cf, const char *fname, gboolean is_tempfile, int *err); - -/** * Read packets from the "end" of a capture file. * * @param cf the capture file to be read from |