]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netinet*: remove dead code from TCP, UDP, SCTP control input
authorGleb Smirnoff <glebius@FreeBSD.org>
Tue, 4 Oct 2022 03:53:04 +0000 (20:53 -0700)
committerGleb Smirnoff <glebius@FreeBSD.org>
Tue, 4 Oct 2022 03:53:04 +0000 (20:53 -0700)
commitc0fc81e9138b4bc636333285087f1c3e1c7bc1e5
treeda32941806e281e5d31e16a9427b805de7532903
parent7f3b00a87aff787e93c3896279105510440627f8
netinet*: remove dead code from TCP, UDP, SCTP control input

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.

In the past the functions were demultiplexing control messages from
ICMP layer, as well as internally generated events.  In the latter
case the the pointer to IP would be NULL.

Differential revision: https://reviews.freebsd.org/D36729
sys/netinet/sctp_usrreq.c
sys/netinet/tcp_subr.c
sys/netinet/udp_usrreq.c
sys/netinet6/sctp6_usrreq.c
sys/netinet6/udp6_usrreq.c