androiddump: Support packet capture on any interface that is up
authorMikael Kanstrup <mikael.kanstrup@gmail.com>
Sun, 18 Jun 2017 22:06:02 +0000 (00:06 +0200)
committerAnders Broman <a.broman58@gmail.com>
Tue, 27 Jun 2017 12:43:44 +0000 (12:43 +0000)
commit564445f7998b3d593681e5e3be05486c2296288c
tree42f7605fbd68403a595265633d11bd07ff7e6b35
parent129a84df606f7bd5742115d0bcd7972ca5ce4e01
androiddump: Support packet capture on any interface that is up

androiddump used to start tcpdump without specifying the interface
to capture packets on. This works when only one interface is up
but when multiple interfaces are up the output might be empty.

This change let tcpdump list all available network interfaces
and adds a unique extcap interface for each interface that is 'up'
on the device.

Change-Id: Icf0d7fa8f38320092579d4163dcdbcf2b687d8cc
Reviewed-on: https://code.wireshark.org/review/22402
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
extcap/androiddump.c