path: root/extcap.h
diff options
authorGuy Harris <guy@alum.mit.edu>2016-02-26 16:35:17 -0800
committerGuy Harris <guy@alum.mit.edu>2016-02-27 00:37:22 +0000
commit60f87ca919a6bfedfdb8b4728f7f221eb6b8af15 (patch)
tree651e700e84357387134a0dd235155b60f18411f8 /extcap.h
parenta7c44b79732cf7823906fd7f6d880f578247d209 (diff)
Put the extcap interfaces at the *end* of the interface list.
The list should start with the native local interfaces, as returned by pcap, so that we default to the interface pcap gives first, rather than to whatever extcap interface happens to be at the beginning. This also means that, if we're only calling extcap_interface_list() to regenerate our internal data structures, we don't bother allocating - and leaking! - a list of if_info structures. Change-Id: Ida651b5b081883f118a300b9f57403f2dc5c4363 Ping-Bug: 12183 Reviewed-on: https://code.wireshark.org/review/14187 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'extcap.h')
1 files changed, 3 insertions, 3 deletions
diff --git a/extcap.h b/extcap.h
index 823c04af3c..d63cb17cb5 100644
--- a/extcap.h
+++ b/extcap.h
@@ -71,9 +71,9 @@ extcap_register_preferences(void);
if_capabilities_t *
extcap_get_if_dlts(const gchar * ifname, char ** err_str);
-/* get a list of all capture interfaces */
-GList *
-extcap_interface_list(char **err_str);
+/* append a list of all extcap capture interfaces to the specified list */
+extcap_interface_list(GList **listp, char **err_str);
/* get a list of all available extcap tools */
GHashTable *