1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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.
This commit is contained in:
Gleb Smirnoff 2012-10-15 07:57:55 +00:00
parent 83e5430018
commit e76163a539
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241575

View File

@ -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