Skip to content

Commit a5566f0

Browse files
committed
Update README.
1 parent 8e1e84b commit a5566f0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,21 @@ FLAGS
6060
-?, --help display help
6161
-j, --json if true, output in JSON format
6262
-x, --xdp if true, use XDP instead of TC (this disables egress statistics)
63-
-k, --kprobes if true, use kprobes for per-proces TCP/UDP statistics
63+
-k, --kprobes if true, use KProbes for per-proces TCP/UDP statistics
64+
-g, --tui if true, enable TUI
6465
--version display program version
6566
-i, --iface STRING interface to read from (default: eth0)
6667
--xdp_mode STRING XDP attach mode (auto, generic, native or offload; native and offload require NIC driver support) (default: auto)
67-
-t, --timeout DURATION timeout for packet capture (default: 1h0m0s)
68+
-r, --refresh DURATION refresh interval in TUI (default: 1s)
69+
-t, --timeout DURATION timeout for packet capture in CLI (default: 10m0s)
6870
```
6971
7072
It is possible to specify interface with `--iface`.
7173
7274
Timeout `--timeout` will stop execution after a specified time, but it is also possible to interrupt program with Ctrl C, SIGTERM or SIGINT.
7375
76+
With `--tui` program will switch to a very simple TUI primarily for continous monitoring purpose. Use arrow keys to browse statistics table and keys 'q' or 'x' to exit.
77+
7478
With `--json` it is possible to get traffic statistics in JSON format.
7579
7680
With `--xdp` program will switch from TC eBPF mode to XDP eBPF mode, working in even more high-performance mode however this will disable all egress statistics. On program exit it is also possible to get an interface reset, so it is best to use this program inside of [screen](https://www.gnu.org/software/screen/) or [tmux](https://github.com/tmux/tmux).

0 commit comments

Comments
 (0)