git: f2d266f3b081 - main - Don't run ip_ctloutput() for divert socket.

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 25 Oct 2021 18:17:58 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=f2d266f3b0815a364289320385f94c3f87dc3c40

commit f2d266f3b0815a364289320385f94c3f87dc3c40
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2021-10-22 23:24:56 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2021-10-25 18:16:59 +0000

    Don't run ip_ctloutput() for divert socket.
    
    It was here since divert(4) was introduced, probably just came with a
    protocol definition boilerplate.  There is no useful socket option
    that can be set or get for a divert socket.
    
    Reviewed by:            donner
    Differential Revision:  https://reviews.freebsd.org/D32608
---
 sys/netinet/ip_divert.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index c30550b1c4db..e156b77f44c7 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -779,7 +779,6 @@ struct protosw div_protosw = {
 	.pr_protocol =		IPPROTO_DIVERT,
 	.pr_flags =		PR_ATOMIC|PR_ADDR,
 	.pr_input =		div_input,
-	.pr_ctloutput =		ip_ctloutput,
 	.pr_init =		div_init,
 	.pr_usrreqs =		&div_usrreqs
 };