1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-wfdctl: save captured packets to .pcap file instead of print out

on console
This commit is contained in:
Derek Dai 2017-03-16 17:25:46 +08:00 committed by edurenye
parent 5d0ce929f9
commit d5c572eacd
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@
*.swp
*.tar.xz
*.trs
*.pcap
.deps/
.dirstamp
.libs/

View file

@ -192,7 +192,7 @@ get_prop org.freedesktop.miracle.wifi \
/org/freedesktop/miracle/wifi/peer/$peer_id \
org.freedesktop.miracle.wifi.Peer \
Interface p2p_iface
tshark -i $p2p_iface -w miraclecast.pcap &
sudo tcpdump -i $p2p_iface -w miraclecast.pcap -T rtp &
cleanup_push "kill $!"
while [[ -z "$nocheck" ]] && ! killall -0 miracle-wfdctl &>/dev/null; do