Wireshark-commits: [Wireshark-commits] master 73ded3a: extcap: simplify execution of single extcap

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 22 Nov 2018 20:50:23 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=73ded3a1d97eb704cec55118e0c94b8dd1f849c8
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

73ded3a by Peter Wu (peter@xxxxxxxxxxxxx):

    extcap: simplify execution of single extcap programs
    
    extcap_foreach has two purposes: discovery of all interfaces for each
    tool and querying info for an extcap interface. Observe that the latter
    requires extcap_if_exists(ifname) to be true. This makes extcap_foreach
    match exactly one interface, so we can avoid some complexity.
    
    Change-Id: I1842f50aa19553608ee5f2bb7bd8d94bba9629f2
    Reviewed-on: https://code.wireshark.org/review/30764
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  85dc646   ws_pipe_spawn_sync: mark arguments as const where possible
     add  73ded3a   extcap: simplify execution of single extcap programs


Summary of changes:
 extcap.c | 63 +++++++++++++++++++++++++++++++++------------------------------
 1 file changed, 33 insertions(+), 30 deletions(-)