aboutsummaryrefslogtreecommitdiffstats
path: root/ui/iface_lists.c
diff options
context:
space:
mode:
authorIrene RĂ¼ngeler <I.Ruengeler@fh-muenster.de>2013-04-16 15:12:38 +0000
committerIrene RĂ¼ngeler <I.Ruengeler@fh-muenster.de>2013-04-16 15:12:38 +0000
commit65043453b9264848edd11dbab866789ca95c8ee7 (patch)
tree6a1360ff36adf238eb1c0832addd9a5706cd4a21 /ui/iface_lists.c
parent80350136f0eb8206c0feba4e7fe725024b4051a1 (diff)
Update interface list when interface get lost and come back.
svn path=/trunk/; revision=48880
Diffstat (limited to 'ui/iface_lists.c')
-rw-r--r--ui/iface_lists.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/iface_lists.c b/ui/iface_lists.c
index f19b345e6a..944026f686 100644
--- a/ui/iface_lists.c
+++ b/ui/iface_lists.c
@@ -88,7 +88,7 @@ scan_local_interfaces(void)
if (global_capture_opts.all_ifaces->len > 0) {
for (i = (int)global_capture_opts.all_ifaces->len-1; i >= 0; i--) {
device = g_array_index(global_capture_opts.all_ifaces, interface_t, i);
- if (device.local) {
+ if (device.local && device.type != IF_PIPE && device.type != IF_STDIN) {
global_capture_opts.all_ifaces = g_array_remove_index(global_capture_opts.all_ifaces, i);
}
}
@@ -306,7 +306,7 @@ scan_local_interfaces(void)
}
if (!found) { /* new interface, maybe a pipe */
device.name = g_strdup(interface_opts.name);
- device.display_name = g_strdup_printf("%s", device.name);
+ device.display_name = g_strdup_printf("%s: %s", interface_opts.descr);
device.hidden = FALSE;
device.selected = TRUE;
device.type = IF_PIPE;