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; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"