mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 21:34:10 +00:00
Fix compilation if SCTP_DONT_DO_PRIVADDR_SCOPE is defined.
The issue was reported by Andrew Galante. MFC after: 3 days
This commit is contained in:
parent
eaeb0c139a
commit
daac3e7db6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257272
|
@ -3740,7 +3740,7 @@ sctp_add_remote_addr(struct sctp_tcb *stcb, struct sockaddr *newaddr,
|
|||
sin->sin_len = sizeof(struct sockaddr_in);
|
||||
if (set_scope) {
|
||||
#ifdef SCTP_DONT_DO_PRIVADDR_SCOPE
|
||||
stcb->ipv4_local_scope = 1;
|
||||
stcb->asoc.scope.ipv4_local_scope = 1;
|
||||
#else
|
||||
if (IN4_ISPRIVATE_ADDRESS(&sin->sin_addr)) {
|
||||
stcb->asoc.scope.ipv4_local_scope = 1;
|
||||
|
|
Loading…
Reference in a new issue