You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-b, --bufsize INT interface buffersize in MB (default: 8)
39
+
-f, --filter STRING BPF filter
40
+
-i, --iface STRING interface to read from (default: en0)
41
+
-t, --timeout DURATION timeout for packet capture (default: 10m0s)
42
+
-l, --interval DURATION interval between packet capture output (default: 0s)
42
43
```
43
44
44
45
By default pktstat listens to all interfaces without any BPF filter. It is possible to specify interface with `--iface` and specify a BPF filter either including or excluding needed traffic, for instance `--filter "not port 22"`.
@@ -47,6 +48,8 @@ Timeout `--timeout` will stop execution after a specified time, but it is also p
47
48
48
49
With `--json` it is possible to get traffic statistics in JSON format.
49
50
51
+
Interval `--interval` when it is greater than zero (and less than timeout duration) will make program output statistics for every such duration until program exit.
52
+
50
53
## Star History
51
54
52
55
[](https://star-history.com/#dkorunic/pktstat&dkorunic/pktstat-bpf&Date)
0 commit comments