diff options
author | chandrasekar marimuthu - Sun Microsystems - Bangalore India <Chandrasekar.Marimuthu@Sun.COM> | 2010-08-03 22:50:37 -0700 |
---|---|---|
committer | chandrasekar marimuthu - Sun Microsystems - Bangalore India <Chandrasekar.Marimuthu@Sun.COM> | 2010-08-03 22:50:37 -0700 |
commit | 6be61d4ea129a94bdfe33533b2bc265d4447f05c (patch) | |
tree | d8c613a1dbca052164f956ff107c8d5ee3e44bf6 /usr/src/uts/common/inet/sctp/sctp_conn.c | |
parent | 32c3e7eeacbc9a513544d1b4f631fd628cec7da3 (diff) | |
download | illumos-gate-6be61d4ea129a94bdfe33533b2bc265d4447f05c.tar.gz |
6912476 SCTP Observability issues with sctp_faddr_s & sctp_reass_s
6912478 SCTP_COMM_LOST notification is generated even if sctp association is not established
Diffstat (limited to 'usr/src/uts/common/inet/sctp/sctp_conn.c')
-rw-r--r-- | usr/src/uts/common/inet/sctp/sctp_conn.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr/src/uts/common/inet/sctp/sctp_conn.c b/usr/src/uts/common/inet/sctp/sctp_conn.c index cdbbdee0e2..6d41675d6b 100644 --- a/usr/src/uts/common/inet/sctp/sctp_conn.c +++ b/usr/src/uts/common/inet/sctp/sctp_conn.c @@ -289,9 +289,9 @@ sctp_conn_request(sctp_t *sctp, mblk_t *mp, uint_t ifindex, uint_t ip_hdr_len, return (NULL); } - ASSERT(eager->sctp_current->ixa != NULL); + ASSERT(eager->sctp_current->sf_ixa != NULL); - ixa = eager->sctp_current->ixa; + ixa = eager->sctp_current->sf_ixa; if (!(ira->ira_flags & IXAF_IS_IPV4)) { ASSERT(!(ixa->ixa_flags & IXAF_IS_IPV4)); @@ -556,10 +556,10 @@ sctp_connect(sctp_t *sctp, const struct sockaddr *dst, uint32_t addrlen, return (err); } cur_fp = sctp->sctp_faddrs; - ASSERT(cur_fp->ixa != NULL); + ASSERT(cur_fp->sf_ixa != NULL); /* No valid src addr, return. */ - if (cur_fp->state == SCTP_FADDRS_UNREACH) { + if (cur_fp->sf_state == SCTP_FADDRS_UNREACH) { mutex_exit(&tbf->tf_lock); WAKE_SCTP(sctp); return (EADDRNOTAVAIL); @@ -567,11 +567,11 @@ sctp_connect(sctp_t *sctp, const struct sockaddr *dst, uint32_t addrlen, sctp->sctp_primary = cur_fp; sctp->sctp_current = cur_fp; - sctp->sctp_mss = cur_fp->sfa_pmss; + sctp->sctp_mss = cur_fp->sf_pmss; sctp_conn_hash_insert(tbf, sctp, 1); mutex_exit(&tbf->tf_lock); - ixa = cur_fp->ixa; + ixa = cur_fp->sf_ixa; ASSERT(ixa->ixa_cred != NULL); if (scope_id != 0) { @@ -604,13 +604,13 @@ sctp_connect(sctp_t *sctp, const struct sockaddr *dst, uint32_t addrlen, * (but the cookie echo will still be sent with the df bit * off). */ - cur_fp->df = B_FALSE; + cur_fp->sf_df = B_FALSE; /* Mark this address as alive */ - cur_fp->state = SCTP_FADDRS_ALIVE; + cur_fp->sf_state = SCTP_FADDRS_ALIVE; /* Send the INIT to the peer */ - SCTP_FADDR_TIMER_RESTART(sctp, cur_fp, cur_fp->rto); + SCTP_FADDR_TIMER_RESTART(sctp, cur_fp, cur_fp->sf_rto); sctp->sctp_state = SCTPS_COOKIE_WAIT; /* * sctp_init_mp() could result in modifying the source |