xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

Add example with syncookie handling

Open s3rj1k opened this issue 5 years ago • 1 comments

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 avatar Feb 01 '20 11:02 s3rj1k

s3rj1k [email protected] writes:

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

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 :)

tohojo avatar Feb 01 '20 16:02 tohojo