Add a comment explaining what setting
authorGuy Harris <guy@alum.mit.edu>
Tue, 26 Nov 2013 02:43:06 +0000 (02:43 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 26 Nov 2013 02:43:06 +0000 (02:43 -0000)
capture_opts->default_options.linktype to -1 means.

svn path=/trunk/; revision=53591

capture_opts.c

index 53b6253346c9401bd27cb543cc634e5349f6c220..089d4d0cf552f65a6db12e22eef53df6b6cd6a3b 100644 (file)
@@ -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;