HomeFreeBSD

tcp: refactor debug function syncookie_cmp()

Description

tcp: refactor debug function syncookie_cmp()

  • Don't bzero() the test structure. All fields checked are set by syncache_expand().
  • Don't allocate TCP address logging string if there is nothing to report.
  • Mark hash bucket argument as pointer to const.
  • Make it void.

Differential Revision: https://reviews.freebsd.org/D50896

(cherry picked from commit e9e6a025b4523c9aa2885e892495601964e03056)

Details

Provenance
glebiusAuthored on Jun 17 2025, 3:50 PM
tuexenCommitted on Sep 9 2025, 6:05 PM
Differential Revision
D50896: tcp: refactor debug function syncookie_cmp()
Parents
rGd6849a3b13f2: tcp: rename syncookie_lookup() into syncookie_expand() and make it bool
Branches
Unknown
Tags
Unknown