Put the extcap interfaces at the *end* of the interface list.
authorGuy Harris <guy@alum.mit.edu>
Sat, 27 Feb 2016 00:35:17 +0000 (16:35 -0800)
committerGuy Harris <guy@alum.mit.edu>
Sat, 27 Feb 2016 00:37:22 +0000 (00:37 +0000)
commit60f87ca919a6bfedfdb8b4728f7f221eb6b8af15
tree651e700e84357387134a0dd235155b60f18411f8
parenta7c44b79732cf7823906fd7f6d880f578247d209
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>
capchild/capture_ifinfo.c
extcap.c
extcap.h