iface_lists: select interfaces via command line (option -i)
authorPeter Wu <peter@lekensteyn.nl>
Fri, 30 Jun 2017 13:57:44 +0000 (15:57 +0200)
committerMichael Mann <mmann78@netscape.net>
Fri, 30 Jun 2017 22:00:25 +0000 (22:00 +0000)
commitec1a5b15455c2c0bd5535d5257b2513804140747
tree6655fb9e98bb28c0ecfae609166659daf83319c0
parentd30887d2897bb6a474efa2464bf234b00e4d45c1
iface_lists: select interfaces via command line (option -i)

The "wireshark -i lo" option somehow did not mark interfaces as
selected. It turns out that the "-i" option populates the "ifaces"
array during option parsing, but we must also set the "selected"
property in the "all_ifaces" array in function "scan_local_interfaces".

Bug: 13865
Fixes: v2.3.0rc0-2812-g40a5fb567a ("Restore interface selection after interface refresh")
Change-Id: Iacfeaf14efe2696f37f0e021259c59fb677de435
Reviewed-on: https://code.wireshark.org/review/22478
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
ui/iface_lists.c