svn commit: r266048 - stable/9/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Wed May 14 16:59:33 UTC 2014


Author: tuexen
Date: Wed May 14 16:59:32 2014
New Revision: 266048
URL: http://svnweb.freebsd.org/changeset/base/266048

Log:
  MFC r257272:
  
  Fix compilation if SCTP_DONT_DO_PRIVADDR_SCOPE is defined.
  The issue was reported by Andrew Galante.

Modified:
  stable/9/sys/netinet/sctp_pcb.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctp_pcb.c
==============================================================================
--- stable/9/sys/netinet/sctp_pcb.c	Wed May 14 16:57:08 2014	(r266047)
+++ stable/9/sys/netinet/sctp_pcb.c	Wed May 14 16:59:32 2014	(r266048)
@@ -3740,7 +3740,7 @@ sctp_add_remote_addr(struct sctp_tcb *st
 			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;


More information about the svn-src-stable-9 mailing list