Skip to content

Commit 74353f2

Browse files
committed
Update README
1 parent a80cdfa commit 74353f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ FLAGS
5757
-?, --help display help
5858
-j, --json if true, output in JSON format
5959
-x, --xdp if true, use XDP instead of TC (this disables egress statistics)
60+
-p, --pid if true, use process ID for packets (works with TC only)
6061
--version display program version
61-
-i, --iface STRING interface to read from (default: anpi5)
62+
-i, --iface STRING interface to read from (default: eth0)
6263
--xdp_mode STRING XDP attach mode (auto, generic, native or offload; native and offload require NIC driver support) (default: auto)
6364
-t, --timeout DURATION timeout for packet capture (default: 1h0m0s)
6465
```
@@ -73,6 +74,8 @@ With `--xdp` program will switch from TC eBPF mode to XDP eBPF mode, working in
7374
7475
Additionally it is possible to change XDP attach mode with `--xdp_mode` from `auto` (best-effort between native and generic) to `native` or `offload`, for NIC drivers that support XDP or even NICs that have hardware XDP support.
7576
77+
With `--pid` it is also possible to enable process ID (PID) tracking. If packet processing is triggered by user-space process, we are able to display process ID, but in case the packet is processed by kernel (forwarding, routing, kernel-generated packets) PID will be zero. Additionally, PID tracking works only in TC eBPF mode.
78+
7679
## Star History
7780
7881
[![Star History Chart](https://api.star-history.com/svg?repos=dkorunic/pktstat,dkorunic/pktstat-bpf&type=Date)](https://star-history.com/#dkorunic/pktstat&dkorunic/pktstat-bpf&Date)

0 commit comments

Comments
 (0)