summaryrefslogtreecommitdiff
path: root/capture_opts.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-11-26 02:43:06 +0000
committerGuy Harris <guy@alum.mit.edu>2013-11-26 02:43:06 +0000
commit4558ff0ef21e0b88186a01d3fb2dee8248d53faa (patch)
tree62e453c6cc1ff151e481a388d6803d91d2a32771 /capture_opts.c
parent945d6d049c18d4636d4f199ead72dece89bdfa65 (diff)
downloadwireshark-4558ff0ef21e0b88186a01d3fb2dee8248d53faa.tar.gz
Add a comment explaining what setting
capture_opts->default_options.linktype to -1 means. svn path=/trunk/; revision=53591
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_opts.c b/capture_opts.c
index 53b6253346..089d4d0cf5 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -64,7 +64,7 @@ capture_opts_init(capture_options *capture_opts)
capture_opts->default_options.cfilter = NULL;
capture_opts->default_options.has_snaplen = FALSE;
capture_opts->default_options.snaplen = WTAP_MAX_PACKET_SIZE;
- capture_opts->default_options.linktype = -1;
+ capture_opts->default_options.linktype = -1; /* use interface default */
capture_opts->default_options.promisc_mode = TRUE;
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
capture_opts->default_options.buffer_size = DEFAULT_CAPTURE_BUFFER_SIZE;