Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2016 11:18:39 +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: r300995 - head/sys/netinet
Message-ID:  <201605301118.u4UBIdjM044856@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Mon May 30 11:18:39 2016
New Revision: 300995
URL: https://svnweb.freebsd.org/changeset/base/300995

Log:
  Fix a byte order issue for the scope stored in the SCTP cookie.
  
  MFC after:	1 week

Modified:
  head/sys/netinet/sctp_output.c

Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c	Mon May 30 09:44:17 2016	(r300994)
+++ head/sys/netinet/sctp_output.c	Mon May 30 11:18:39 2016	(r300995)
@@ -5686,7 +5686,7 @@ do_a_abort:
 			{
 				stc.addr_type = SCTP_IPV6_ADDRESS;
 				memcpy(&stc.address, &src6->sin6_addr, sizeof(struct in6_addr));
-				stc.scope_id = in6_getscope(&src6->sin6_addr);
+				stc.scope_id = ntohs(in6_getscope(&src6->sin6_addr));
 				if (sctp_is_address_on_local_host(src, vrf_id)) {
 					stc.loopback_scope = 1;
 					stc.local_scope = 0;



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