Wireshark-commits: [Wireshark-commits] master 60f87ca: Put the extcap interfaces at the *end* of th

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 27 Feb 2016 00:37:33 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=60f87ca919a6bfedfdb8b4728f7f221eb6b8af15
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

60f87ca by Guy Harris (guy@xxxxxxxxxxxx):

    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@xxxxxxxxxxxx>
    

Actions performed:

    from  a7c44b7   Ensure we have a name resolution block when parsing its block type.
    adds  60f87ca   Put the extcap interfaces at the *end* of the interface list.


Summary of changes:
 capchild/capture_ifinfo.c |   11 +++++++----
 extcap.c                  |   39 +++++++++++++++++++++++++++------------
 extcap.h                  |    6 +++---
 3 files changed, 37 insertions(+), 19 deletions(-)