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
parent a2e16ff348
commit 714f5a3ea9
No known key found for this signature in database
GPG key ID: E109CC97553EF009
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@
*.swp *.swp
*.tar.xz *.tar.xz
*.trs *.trs
*.pcap
.deps/ .deps/
.dirstamp .dirstamp
.libs/ .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/$peer_id \
org.freedesktop.miracle.wifi.Peer \ org.freedesktop.miracle.wifi.Peer \
Interface p2p_iface Interface p2p_iface
tshark -i $p2p_iface -w miraclecast.pcap & sudo tcpdump -i $p2p_iface -w miraclecast.pcap -T rtp &
cleanup_push "kill $!" cleanup_push "kill $!"
while [[ -z "$nocheck" ]] && ! killall -0 miracle-wfdctl &>/dev/null; do while [[ -z "$nocheck" ]] && ! killall -0 miracle-wfdctl &>/dev/null; do