Page MenuHomeFreeBSD

D32608.diff
No OneTemporary

D32608.diff

diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -687,18 +687,6 @@
return div_output(so, m, (struct sockaddr_in *)nam, control);
}
-static void
-div_ctlinput(int cmd, struct sockaddr *sa, void *vip)
-{
- struct in_addr faddr;
-
- faddr = ((struct sockaddr_in *)sa)->sin_addr;
- if (sa->sa_family != AF_INET || faddr.s_addr == INADDR_ANY)
- return;
- if (PRC_IS_REDIRECT(cmd))
- return;
-}
-
static int
div_pcblist(SYSCTL_HANDLER_ARGS)
{
@@ -791,7 +779,6 @@
.pr_protocol = IPPROTO_DIVERT,
.pr_flags = PR_ATOMIC|PR_ADDR,
.pr_input = div_input,
- .pr_ctlinput = div_ctlinput,
.pr_ctloutput = ip_ctloutput,
.pr_init = div_init,
.pr_usrreqs = &div_usrreqs

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 12:20 PM (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14738178
Default Alt Text
D32608.diff (772 B)

Event Timeline