Repository navigation
Changed
- Releases ship
flat_linux_amd64.tar.gzandflat_linux_arm64.tar.gzwith achecksums.txt. The oldflat.tar.gzandflat-greenteagc.tar.gzare gone, since Green Tea GC is the default since Go 1.26. - The eBPF code uses
bpf/vmlinux.hinstead of libc and kernel headers, so building only needsclang,llvm, andlibbpf-dev. Only little-endian architectures are supported. makenow builds theflatbinary. Usemake releaseto build the release archives.- Releases are built and published by GitHub Actions when a
v*tag is pushed. - The generated eBPF files (
internal/probe/probe_bpf*.goand.o) are no longer in git. Rungo generate ./...(ormake) before building.
Fixed
-
The C compiler flags in
go:generate(-Wall -Werrorand others) were silently ignored because of a wrong separator (-instead of--). -
A retransmitted SYN restarts the latency measurement, so the retransmission wait is no longer reported as latency.
-
Packets dropped because the ring buffer is full are now counted and logged every 10 seconds, instead of silently missing from the results. Only TCP and UDP packets use ring buffer space now, so other traffic no longer takes room from them.
-
Stale flow table entries are now all pruned. Pruning used to stop at the first fresh entry, so the table could grow without bound.
-
Only TCP SYN and SYN/ACK packets are sent to user space. Other TCP packets used to fall through to the UDP path and were sent up for nothing.
-
-ipand-portused together now match flows that have both, instead of either. -
The qdisc is removed when startup fails part way, including when the ring buffer reader cannot be opened.
-
UDP packets with less than 12 bytes of payload are no longer dropped.
-
IPv4 packets with IP options now report the correct ports.
-
The rlimit log message shows the values that are actually set.
-
Clearer error for out of range
-portvalues. -
Stopping the program no longer logs
Failed reading from ringbuf: epoll wait: file already closed. -
The shutdown message names the signal that was caught (SIGINT or SIGTERM).
-
Test packets use a unicast destination MAC and a valid IPv4 header, so the eBPF tests exercise the parser instead of being dropped at the unicast check.
-
README: fixed the
git clonecommand and listed the build dependencies.