We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0445d7 commit 4dd372dCopy full SHA for 4dd372d
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
@@ -294,7 +294,9 @@ static int tcp_validate_sysctl(struct tcp_syncookie *ctx)
294
(ctx->ipv6 && ctx->attrs.mss != MSS_LOCAL_IPV6))
295
goto err;
296
297
- if (!ctx->attrs.wscale_ok || ctx->attrs.snd_wscale != 7)
+ if (!ctx->attrs.wscale_ok ||
298
+ !ctx->attrs.snd_wscale ||
299
+ ctx->attrs.snd_wscale >= BPF_SYNCOOKIE_WSCALE_MASK)
300
301
302
if (!ctx->attrs.tstamp_ok)
0 commit comments