diff options
author | Florian Pritz <bluewind@xinu.at> | 2024-10-14 21:41:34 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2024-10-14 21:54:03 +0200 |
commit | cbb46194245af66992bec960e7237cce22d96962 (patch) | |
tree | c5a1b72442aca6dc76c550260168f8885b163a6d /wireshark-remote | |
parent | 76de2bd5d846064b0cf83db07c5a1501b8500254 (diff) | |
download | bin-cbb46194245af66992bec960e7237cce22d96962.tar.gz bin-cbb46194245af66992bec960e7237cce22d96962.tar.xz |
wireshark-remote: Unbuffer pipe
Avoid long wait time with specific filter with not enough traffic to fill the buffer
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'wireshark-remote')
-rwxr-xr-x | wireshark-remote | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wireshark-remote b/wireshark-remote index 6b35f7f..e07e8a5 100755 --- a/wireshark-remote +++ b/wireshark-remote @@ -14,4 +14,4 @@ fi #wireshark-gtk -k -i <(ssh "$host" dumpcap -q -P -i "$iface" -w - -f 'not\ port\ 22') sed -i "s/^gui\.window_title: .*/gui.window_title: $host $iface $filter/" ~/.config/wireshark/preferences -wireshark -k -i <(ssh "$host" tcpdump -i "$iface" -w - "'not port 22 $filter'") +wireshark -k -i <(stdbuf -o0 ssh "$host" stdbuf -o0 sudo stdbuf -o0 tcpdump -s 65535 -i "$iface" -w - "'not port 22 $filter'") |