diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2012-10-15 07:57:55 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2012-10-15 07:57:55 +0000 |
commit | e76163a539e5e860edd7a48c4586f597ab81ff2f (patch) | |
tree | f8fe29bbf8ed3a3f8c6914430b4d8cd62e5eec08 /sys/netinet/ip_divert.c | |
parent | 83e5430018dd8965c88a6c1c4561473e7115b47f (diff) | |
download | src-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.c | 2 |
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 |