Only overwrite the scanned link layer properties if they are specified by command line options.

svn path=/trunk/; revision=49482
This commit is contained in:
Irene Rüngeler 2013-05-21 14:17:42 +00:00
parent 1bdf3446c5
commit aaa1f1bef9
1 changed files with 3 additions and 1 deletions

View File

@ -272,7 +272,9 @@ scan_local_interfaces(void)
device.has_snaplen = interface_opts.has_snaplen;
device.snaplen = interface_opts.snaplen;
device.cfilter = g_strdup(interface_opts.cfilter);
device.active_dlt = interface_opts.linktype;
if (interface_opts.linktype != -1) {
device.active_dlt = interface_opts.linktype;
}
device.selected = TRUE;
global_capture_opts.num_selected++;
break;