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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300995
@ -5686,7 +5686,7 @@ sctp_send_initiate_ack(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
|
|||||||
{
|
{
|
||||||
stc.addr_type = SCTP_IPV6_ADDRESS;
|
stc.addr_type = SCTP_IPV6_ADDRESS;
|
||||||
memcpy(&stc.address, &src6->sin6_addr, sizeof(struct in6_addr));
|
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)) {
|
if (sctp_is_address_on_local_host(src, vrf_id)) {
|
||||||
stc.loopback_scope = 1;
|
stc.loopback_scope = 1;
|
||||||
stc.local_scope = 0;
|
stc.local_scope = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user