Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2019 08:39:16 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r347613 - stable/11/sys/netinet6
Message-ID:  <201905150839.x4F8dGTi056321@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Wed May 15 08:39:16 2019
New Revision: 347613
URL: https://svnweb.freebsd.org/changeset/base/347613

Log:
  MFC r337738:
  Use a macro to set the assoc state.

Modified:
  stable/11/sys/netinet6/sctp6_usrreq.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- stable/11/sys/netinet6/sctp6_usrreq.c	Wed May 15 08:15:44 2019	(r347612)
+++ stable/11/sys/netinet6/sctp6_usrreq.c	Wed May 15 08:39:16 2019	(r347613)
@@ -924,7 +924,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr
 		/* Set the connected flag so we can queue data */
 		soisconnecting(so);
 	}
-	stcb->asoc.state = SCTP_STATE_COOKIE_WAIT;
+	SCTP_SET_STATE(stcb, SCTP_STATE_COOKIE_WAIT);
 	(void)SCTP_GETTIME_TIMEVAL(&stcb->asoc.time_entered);
 
 	/* initialize authentication parameters for the assoc */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905150839.x4F8dGTi056321>