From 8204578251e3e11b0978b3617d19119e7c7c6ec5 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Fri, 27 Mar 2015 07:50:42 +0100 Subject: Extcap: display a USB icon when adding a USBPcap interface Change-Id: Ibe78b115eb6e7e737a5dc9c8a7937b82d8cf76a8 Reviewed-on: https://code.wireshark.org/review/7830 Reviewed-by: Pascal Quantin --- extcap.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'extcap.c') diff --git a/extcap.c b/extcap.c index 82ae1fe8ca..82928e81ca 100644 --- a/extcap.c +++ b/extcap.c @@ -308,7 +308,16 @@ static gboolean interfaces_cb(const gchar *extcap, gchar *output, void *data, if_info->name = g_strdup(int_iter->call); if_info->friendly_name = g_strdup(int_iter->display); - if_info->type = IF_EXTCAP; +#ifdef WIN32 + if (strncmp(if_info->friendly_name, "USBPcap", 7) == 0) + { + if_info->type = IF_USB; + } + else +#endif + { + if_info->type = IF_EXTCAP; + } if_info->extcap = g_strdup(extcap); *il = g_list_append(*il, if_info); -- cgit v1.2.3