Page MenuHomeFreeBSD

tcp: micro-optimize SYN-cookie expansion
ClosedPublic

Authored by tuexen on Aug 30 2025, 10:32 PM.
Tags
None
Referenced Files
F159822725: D52296.diff
Thu, Jun 18, 1:55 PM
Unknown Object (File)
Thu, Jun 11, 2:16 AM
Unknown Object (File)
Fri, Jun 5, 3:44 PM
Unknown Object (File)
Thu, Jun 4, 6:16 PM
Unknown Object (File)
May 14 2026, 2:28 PM
Unknown Object (File)
May 14 2026, 2:28 PM
Unknown Object (File)
May 14 2026, 5:35 AM
Unknown Object (File)
May 13 2026, 8:26 PM

Details

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Sep 1 2025, 6:42 AM
sys/netinet/tcp_syncache.c
2327

I'd suggest to make it u_int. Negative right operand of << is undefined behavior. I know we don't got into negative here, but using unsigned operand would make it tidier.

Use u_int instead of int as the type for wscale as suggested by glebius@.

This revision now requires review to proceed.Sep 1 2025, 8:45 PM
This revision is now accepted and ready to land.Sep 1 2025, 10:13 PM
This revision was automatically updated to reflect the committed changes.