Skip to content

Commit

Permalink
sctp: fix to indicate ASCONF support in INIT-ACK only if peer has suc…
Browse files Browse the repository at this point in the history
…h capable

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.

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Vlad Yasevich <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Wei Yongjun authored and davem330 committed Mar 13, 2009
1 parent 5e8f3f7 commit 5ffad5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/sctp/sm_make_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ffad5a

Please sign in to comment.