Fix a byte order issue for the scope stored in the SCTP cookie.

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2016-05-30 11:18:39 +00:00
parent 496d023db3
commit 7b7f31e6cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300995

View File

@ -5686,7 +5686,7 @@ sctp_send_initiate_ack(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
{
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;