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
F137848737: D36729.id111406.diff
Wed, Nov 26, 10:02 AM
Unknown Object (File)
Wed, Nov 5, 10:09 AM
Unknown Object (File)
Wed, Nov 5, 10:09 AM
Unknown Object (File)
Wed, Nov 5, 10:05 AM
Unknown Object (File)
Wed, Nov 5, 10:05 AM
Unknown Object (File)
Mon, Nov 3, 7:35 AM
Unknown Object (File)
Sat, Nov 1, 9:16 PM
Unknown Object (File)
Wed, Oct 29, 2:17 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 47548
Build 44435: arc lint + arc unit

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
2886

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.