Page MenuHomeFreeBSD

tcp: remove unused code in tcp_usr_attach
ClosedPublic

Authored by tuexen on May 30 2024, 1:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 25, 8:56 PM
Unknown Object (File)
Fri, Sep 19, 12:56 AM
Unknown Object (File)
Thu, Sep 18, 8:39 AM
Unknown Object (File)
Aug 3 2025, 2:08 PM
Unknown Object (File)
Aug 2 2025, 9:17 PM
Unknown Object (File)
Jul 24 2025, 11:24 PM
Unknown Object (File)
Jul 20 2025, 1:06 PM
Unknown Object (File)
Jun 22 2025, 4:01 AM

Details

Summary

pr_attach is only called on a socket so with so->so_listen != NULL via sonewconn. However, sonewconn is not called from the TCP code. The listening sockets are handled in tcp_syncache.c without using sonewconn. Therefore, the code removed is never executed.
No functional change intended.

Diff Detail

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