HomeFreeBSD

tcp: fix list iteration in tcp_lro_flush_active()

Description

tcp: fix list iteration in tcp_lro_flush_active()

Use LIST_FOREACH_SAFE(), since the list element is removed from
the list in the loop body, zero out and inserted in the free list.

Reviewed by: rrs
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D46383

Details

Provenance
tuexenAuthored on Aug 20 2024, 10:07 PM
Reviewer
rrs
Differential Revision
D46383: tcp: improve consistency
Parents
rG417b35a97b76: netinet: Add a sysctl to allow disabling connections to INADDR_ANY
Branches
Unknown
Tags
Unknown