From 55733ea17021b160c17df09b3d3a602386c8586f Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Fri, 4 Jul 2014 18:18:07 -0400 Subject: fix scan_local_interfaces() when we delete an interface from all_ifaces, delete it from ifaces as well remove its selected status if it was selected at the moment, an interface that was used for capturing before will never be removed from the list of interfaces even if it becomes unavailable as it remains in ifaces and will be re-added to all_ifaces in scan_local_interfaces() new helper function capture_opts_del_iface() to delete an entry from ifaces and free all its components Change-Id: Ie3271a7ed086367e511d3a971f3b68cfc014115d Reviewed-on: https://code.wireshark.org/review/2965 Reviewed-by: Evan Huus --- capture_opts.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'capture_opts.h') diff --git a/capture_opts.h b/capture_opts.h index 69f4d2d7bd..3d88f647cb 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -338,6 +338,9 @@ extern int capture_opts_default_iface_if_necessary(capture_options *capture_opts, const char *capture_device); +extern void +capture_opts_del_iface(capture_options *capture_opts, guint index); + extern void collect_ifaces(capture_options *capture_opts); -- cgit v1.2.1