Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2012 20:42:48 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242325 - head/sys/netinet
Message-ID:  <201210292042.q9TKgmY5040403@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Mon Oct 29 20:42:48 2012
New Revision: 242325
URL: http://svn.freebsd.org/changeset/base/242325

Log:
  Use ntohs() and htons() in correct order. However, this doesn't change
  functionality.

Modified:
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c	Mon Oct 29 18:06:09 2012	(r242324)
+++ head/sys/netinet/sctputil.c	Mon Oct 29 20:42:48 2012	(r242325)
@@ -6821,7 +6821,7 @@ sctp_recv_udp_tunneled_packet(struct mbu
 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210292042.q9TKgmY5040403>