mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Use ntohs() and htons() in correct order. However, this doesn't change
functionality.
This commit is contained in:
parent
b3d9795c98
commit
09c1c8563a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242325
@ -6821,7 +6821,7 @@ sctp_recv_udp_tunneled_packet(struct mbuf *m, int off, struct inpcb *ignored)
|
||||
switch (iph->ip_v) {
|
||||
#ifdef INET
|
||||
case IPVERSION:
|
||||
iph->ip_len = ntohs(htons(iph->ip_len) - sizeof(struct udphdr));
|
||||
iph->ip_len = htons(ntohs(iph->ip_len) - sizeof(struct udphdr));
|
||||
sctp_input_with_port(m, off, port);
|
||||
break;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user