Page MenuHomeFreeBSD

netinet*: remove dead code from TCP, UDP, SCTP control input
ClosedPublic

Authored by glebius on Sep 26 2022, 7:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 5:09 PM
Unknown Object (File)
Sat, Jan 18, 9:16 PM
Unknown Object (File)
Dec 21 2024, 4:05 PM
Unknown Object (File)
Dec 19 2024, 7:22 AM
Unknown Object (File)
Dec 14 2024, 4:18 AM
Unknown Object (File)
Dec 12 2024, 11:25 AM
Unknown Object (File)
Nov 25 2024, 9:00 AM
Unknown Object (File)
Nov 7 2024, 3:54 PM
Subscribers

Details

Summary

Now these functions are called only from icmp*_input(). The pointer to
the ICMP data is never NULL and cmd has a limited set of values.

Diff Detail

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

Event Timeline

sys/netinet/sctp_usrreq.c
277

Worth mentioning out why we can reference ip+ header fields

281

C99 init?

sys/netinet/tcp_subr.c
2898

Worth clarifying in the description that no one reacts on HOSTDEAD.

This revision was not accepted when it landed; it landed in state Needs Review.Oct 4 2022, 3:58 AM
This revision was automatically updated to reflect the committed changes.