aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_divert.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2012-10-15 07:57:55 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2012-10-15 07:57:55 +0000
commite76163a539e5e860edd7a48c4586f597ab81ff2f (patch)
treef8fe29bbf8ed3a3f8c6914430b4d8cd62e5eec08 /sys/netinet/ip_divert.c
parent83e5430018dd8965c88a6c1c4561473e7115b47f (diff)
downloadsrc-e76163a539e5e860edd7a48c4586f597ab81ff2f.tar.gz
src-e76163a539e5e860edd7a48c4586f597ab81ff2f.zip
We don't need to convert ip6_len to host byte order before
ip6_output(), the IPv6 stack is working in net byte order. The reason this code worked before is that ip6_output() doesn't look at ip6_plen at all and recalculates it based on mbuf length.
Notes
Notes: svn path=/head/; revision=241575
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r--sys/netinet/ip_divert.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index 4f5f1b35e370..7babb27e53e0 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -402,8 +402,6 @@ div_output(struct socket *so, struct mbuf *m, struct sockaddr_in *sin,
INP_RUNLOCK(inp);
goto cantsend;
}
-
- ip6->ip6_plen = ntohs(ip6->ip6_plen);
break;
}
#endif