Reset the captured-packet count when we start or restart a capture.

Bug: 6217
Change-Id: I916e9a6fdb0e114d5f8f123153c213af9273bbc3
Reviewed-on: https://code.wireshark.org/review/7954
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2015-04-06 14:06:17 -07:00
parent 8fec18a0b6
commit 0ef2fd5d53
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ capture_start(capture_options *capture_opts, capture_session *cap_session, void(
GString *source;
cap_session->state = CAPTURE_PREPARING;
cap_session->count = 0;
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_MESSAGE, "Capture Start ...");
source = get_iface_list_string(capture_opts, IFLIST_SHOW_FILTER);
cf_set_tempfile_source((capture_file *)cap_session->cf, source->str);