Use the same default value for the snaplen in the new array as in the

old way.

svn path=/trunk/; revision=37113
This commit is contained in:
Michael Tüxen 2011-05-13 06:04:28 +00:00
parent 464486e1c5
commit a80b7e5fea
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ capture_opts_init(capture_options *capture_opts, void *cf)
capture_opts->default_options.name = g_strdup("");
capture_opts->default_options.descr = g_strdup("");
capture_opts->default_options.cfilter = g_strdup("");
capture_opts->default_options.snaplen = 0;
capture_opts->default_options.snaplen = WTAP_MAX_PACKET_SIZE;
capture_opts->default_options.linktype = -1;
capture_opts->default_options.promisc_mode = TRUE;
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)