Skip to contentSkip to conversation

sctp: fix to indicate ASCONF support in INIT-ACK only if

PATCH New Wei Yongjun 1 participant 1 message Mar 9, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sctp: fix to indicate ASCONF support in INIT-ACK only if

This patch fix to indicate ASCONF support in INIT-ACK only if peer has such capable.

This patch also fix to calc the chunk size if peer has no FWD-TSN capable.

---
 net/sctp/sm_make_chunk.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/sctp/sm_make_chunk.c +2 -2
index b40e95f..9484f33 100644
@@ -372,10 +372,10 @@ struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc,
 	if (asoc->peer.ecn_capable)
 		chunksize += sizeof(ecap_param);
 
-	if (sctp_prsctp_enable)
+	if (asoc->peer.prsctp_capable)
 		chunksize += sizeof(prsctp_param);
 
-	if (sctp_addip_enable) {
+	if (asoc->peer.asconf_capable) {
 		extensions[num_ext] = SCTP_CID_ASCONF;
 		extensions[num_ext+1] = SCTP_CID_ASCONF_ACK;
 		num_ext += 2;
Signature · 1 line
1.5.3.8