Move PRU_SENDOOB request to (*pru_sendoob)().
authormvs <mvs@openbsd.org>
Wed, 31 Aug 2022 21:23:02 +0000 (21:23 +0000)
committermvs <mvs@openbsd.org>
Wed, 31 Aug 2022 21:23:02 +0000 (21:23 +0000)
commitf0a6a678cb989f769e4f4f073cf2d1a03c83df90
tree8c32bf6d04ab33b16f9ff087a859b58fdaf68eed
parent7a17f38c9c565cae4432481cdcd773b9cd879891
Move PRU_SENDOOB request to (*pru_sendoob)().

PRU_SENDOOB request always consumes passed `top' and `control' mbufs. To
avoid dummy m_freem(9) handlers for all protocols release passed mbufs
in the pru_sendoob() EOPNOTSUPP error path.

Also fix `control' mbuf(9) leak in the tcp(4) PRU_SENDOOB error path.

ok bluhm@
sys/kern/uipc_usrreq.c
sys/net/pfkeyv2.c
sys/net/rtsock.c
sys/netinet/ip_divert.c
sys/netinet/raw_ip.c
sys/netinet/tcp_usrreq.c
sys/netinet/tcp_var.h
sys/netinet/udp_usrreq.c
sys/netinet6/ip6_divert.c
sys/netinet6/raw_ip6.c
sys/sys/protosw.h