tcpreplay icon indicating copy to clipboard operation
tcpreplay copied to clipboard

BPF support for linux

Open anthraxx opened this issue 7 years ago • 2 comments

It looks like BPF is not supported for Linux variant, while the configure summary clearly says "BSD BPF" it is still auto-detected and needs explicit fiddling to get tcpreplay compiled.

Either way, support for linux eBPF would be cool, right now it fails with:

sendpacket.c: In function ‘sendpacket_open_bpf’:
sendpacket.c:1052:24: error: storage size of ‘bv’ isn’t known
     struct bpf_version bv;
                        ^~
compilation terminated due to -Wfatal-errors.
make[4]: *** [Makefile:455: sendpacket.o] Error 1
make[4]: *** Waiting for unfinished jobs....

anthraxx avatar May 10 '18 02:05 anthraxx

Will investigate.

fklassen avatar May 10 '18 04:05 fklassen

eBPF is not the same as BPF. Will defer eBPF support until BSD license updates make it into mainline kernel, and libraries stabilize.

fklassen avatar Oct 23 '18 19:10 fklassen