summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2013-10-28 20:32:37 +0000
committertuexen <tuexen@FreeBSD.org>2013-10-28 20:32:37 +0000
commit59a2e2d4634066063aaccd023f871dd31ef43622 (patch)
treee37403a5ef8e619bd3c45c6e462305440a2c93f0
parent67835727b43f038edc5165ef54ae93ae77959d5d (diff)
downloadFreeBSD-src-59a2e2d4634066063aaccd023f871dd31ef43622.zip
FreeBSD-src-59a2e2d4634066063aaccd023f871dd31ef43622.tar.gz
Fix compilation if SCTP_DONT_DO_PRIVADDR_SCOPE is defined.
The issue was reported by Andrew Galante. MFC after: 3 days
-rw-r--r--sys/netinet/sctp_pcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index 95d8771..1d21b2a 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -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;
OpenPOWER on IntegriCloud