xdp-tutorial
xdp-tutorial copied to clipboard
Add example with syncookie handling
Would be nice to have aa tutorial for syncookie handling, simple synflood filter with bpf_tcp_check_syncookie function.
Kernel already has this test as a starting point https://github.com/torvalds/linux/blob/master/tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c
s3rj1k [email protected] writes:
Would be nice to have aa tutorial for syncookie handling, simple synflood filter with
bpf_tcp_check_syncookiefunction.Kernel already has this test as a starting point https://github.com/torvalds/linux/blob/master/tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c
Certainly wouldn't object to having a lesson around this. Pull requests welcome, of course; will leave this issue here as a suggestion for anyone who wants to tackle it :)