svn commit: r242325 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Mon Oct 29 20:42:48 UTC 2012


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


More information about the svn-src-all mailing list