Home
last modified time | relevance | path

Searched refs:COOKIE_MASK (Results 1 – 1 of 1) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_custom_syncookie.c26 #define COOKIE_MASK (((__u32)1 << COOKIE_BITS) - 1) macro
347 ctx->attrs.rcv_tsecr &= ~COOKIE_MASK; in tcp_prepare_cookie()
348 ctx->attrs.rcv_tsecr |= hash & COOKIE_MASK; in tcp_prepare_cookie()
351 hash &= ~COOKIE_MASK; in tcp_prepare_cookie()
482 hash -= ctx->attrs.rcv_tsecr & COOKIE_MASK; in tcp_validate_cookie()
484 hash &= ~COOKIE_MASK; in tcp_validate_cookie()
486 hash -= cookie & ~COOKIE_MASK; in tcp_validate_cookie()