Page MenuHomeFreeBSD

tcp: remove check for condition that never happens
ClosedPublic

Authored by glebius on Jan 28 2025, 11:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 18, 7:57 AM
Unknown Object (File)
Wed, May 13, 4:03 PM
Unknown Object (File)
May 4 2026, 11:13 PM
Unknown Object (File)
May 2 2026, 11:18 AM
Unknown Object (File)
Apr 27 2026, 12:34 PM
Unknown Object (File)
Apr 19 2026, 1:26 AM
Unknown Object (File)
Apr 18 2026, 6:43 PM
Unknown Object (File)
Apr 18 2026, 5:55 PM
Subscribers

Details

Summary

A tcpcb in TCPS_LISTEN has always socket in SO_ACCEPTCONN. One block
above there is an assertion that proves that this never happens. We
stopped ever clearing SO_ACCEPTCONN back in 779f106aa169.

This reverts commit 982c1675ff8864f51007e0be402ead88429222bb.

Diff Detail

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

Event Timeline

cc added a subscriber: cc.
cc added inline comments.
sys/netinet/tcp_input.c
1357

Right, this condition should not be valid any more.

This revision is now accepted and ready to land.Jan 31 2025, 3:10 PM