path: root/capture_opts.h
diff options
authorMartin Kaiser <wireshark@kaiser.cx>2014-07-04 18:18:07 -0400
committerEvan Huus <eapache@gmail.com>2014-07-12 14:06:03 +0000
commit55733ea17021b160c17df09b3d3a602386c8586f (patch)
tree643de689cebc98b02f41f4fc6f79170fa844d62f /capture_opts.h
parent5fda232659f25bedbf426dfc25f174119614229f (diff)
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 <eapache@gmail.com>
Diffstat (limited to 'capture_opts.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/capture_opts.h b/capture_opts.h
index 69f4d2d7bd..3d88f647cb 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -339,6 +339,9 @@ 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);
/* Default capture buffer size in Mbytes. */