androiddump: Fix btsnoop net port lookup
authorMikael Kanstrup <mikael.kanstrup@gmail.com>
Mon, 26 Mar 2018 08:41:00 +0000 (10:41 +0200)
committerRoland Knall <rknall@gmail.com>
Mon, 26 Mar 2018 14:42:03 +0000 (14:42 +0000)
commit789db1f15de6238c7b7b00662aeaedf8189eb962
tree150db2bd1ba55a7c80281ebf24b904b0362e7955
parent69d080700d924339b5807ac5a87f57fc281f44b3
androiddump: Fix btsnoop net port lookup

Code assumes btsnoop net port is the first tcp socket found in
/proc/<pid>/net/tcp. If it is not the port number lookup will
fail.

Fixed by searching all open tcp sockets for a match.

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