From 09c1c8563afd738ba375a9e6536401d77493abbc Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Mon, 29 Oct 2012 20:42:48 +0000 Subject: [PATCH] Use ntohs() and htons() in correct order. However, this doesn't change functionality. --- sys/netinet/sctputil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 41e8ac371a00..77c6788b73c2 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