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 <pascal.quantin@gmail.com>
This commit is contained in:
parent
55de704f82
commit
8204578251
11
extcap.c
11
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);
|
||||
|
|
Loading…
Reference in New Issue