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)
Dec 11 2024, 9:28 PM
Unknown Object (File)
Nov 30 2024, 5:33 AM
Unknown Object (File)
Nov 25 2024, 11:36 AM
Unknown Object (File)
Nov 25 2024, 6:41 AM
Unknown Object (File)
Nov 22 2024, 6:59 AM
Unknown Object (File)
Nov 20 2024, 10:17 PM
Unknown Object (File)
Nov 15 2024, 5:54 PM
Unknown Object (File)
Nov 8 2024, 12:15 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