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
F132976824: D45412.id139232.diff
Tue, Oct 21, 6:15 PM
Unknown Object (File)
Mon, Oct 20, 2:57 PM
Unknown Object (File)
Mon, Oct 20, 12:28 PM
Unknown Object (File)
Mon, Oct 20, 11:56 AM
Unknown Object (File)
Sat, Oct 18, 10:53 AM
Unknown Object (File)
Sat, Oct 18, 5:31 AM
Unknown Object (File)
Fri, Oct 17, 6:53 PM
Unknown Object (File)
Fri, Oct 17, 6:53 PM

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