diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-03-29 19:35:47 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-03-29 17:48:28 +0000 |
commit | 606fa969ba69f11c54ff16f89d514de8a7e0b3fb (patch) | |
tree | acc1697f02d3bf49382b25a1317805af4d0bcb39 /extcap.c | |
parent | 4e4de74000a9fd2435016b061e4337b90e6d4fae (diff) | |
download | wireshark-606fa969ba69f11c54ff16f89d514de8a7e0b3fb.tar.gz wireshark-606fa969ba69f11c54ff16f89d514de8a7e0b3fb.tar.bz2 wireshark-606fa969ba69f11c54ff16f89d514de8a7e0b3fb.zip |
Extcap: fix USBPcap capture broken by g8204578
g8204578 was not the right way to do things: if_type is used to identify an extcap interface
Change-Id: Iead6c5e63f6874012c27ed7c1bf7152a5891ad65
Reviewed-on: https://code.wireshark.org/review/7849
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -308,16 +308,7 @@ 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); -#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->type = IF_EXTCAP; if_info->extcap = g_strdup(extcap); *il = g_list_append(*il, if_info); |