svn commit: r257272 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Mon Oct 28 20:32:38 UTC 2013


Author: tuexen
Date: Mon Oct 28 20:32:37 2013
New Revision: 257272
URL: http://svnweb.freebsd.org/changeset/base/257272

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

Modified:
  head/sys/netinet/sctp_pcb.c

Modified: head/sys/netinet/sctp_pcb.c
==============================================================================
--- head/sys/netinet/sctp_pcb.c	Mon Oct 28 20:32:05 2013	(r257271)
+++ head/sys/netinet/sctp_pcb.c	Mon Oct 28 20:32:37 2013	(r257272)
@@ -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-head mailing list