summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2012-10-29 20:42:48 +0000
committertuexen <tuexen@FreeBSD.org>2012-10-29 20:42:48 +0000
commit02bbac6d05e1ddc167e98525dc0e19956e9ce498 (patch)
tree45426ed1802c32a676e97b7abfe3675cb0377bf5 /sys/netinet
parentdabdba130671b50d0b296dc9d7856b4c474a97a2 (diff)
downloadFreeBSD-src-02bbac6d05e1ddc167e98525dc0e19956e9ce498.zip
FreeBSD-src-02bbac6d05e1ddc167e98525dc0e19956e9ce498.tar.gz
Use ntohs() and htons() in correct order. However, this doesn't change
functionality.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/sctputil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index 41e8ac3..77c6788 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -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
OpenPOWER on IntegriCloud