From 60f87ca919a6bfedfdb8b4728f7f221eb6b8af15 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 26 Feb 2016 16:35:17 -0800 Subject: 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 --- extcap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extcap.h') 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 */ +void +extcap_interface_list(GList **listp, char **err_str); /* get a list of all available extcap tools */ GHashTable * -- cgit v1.2.3