Fix a byte order issue for the scope stored in the SCTP cookie.
MFC after: 1 week
This commit is contained in:
parent
496d023db3
commit
7b7f31e6cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user