]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix to choose alternate destination when retransmit ASCONF chunk
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 12 May 2009 13:52:51 +0000 (21:52 +0800)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 3 Jun 2009 13:14:46 +0000 (09:14 -0400)
commit397f5a0e3be73c13101c4380536f9c26f3d340f4
treeec700e8a9fe3dd9f1ed841e22f96c06476d484fb
parent90ef7f184535d5e4db46a605adc17f55bf8f031a
sctp: fix to choose alternate destination when retransmit ASCONF chunk

RFC 5061 Section 5.1 ASCONF Chunk Procedures said:

B4)  Re-transmit the ASCONF Chunk last sent and if possible choose an
     alternate destination address (please refer to [RFC4960],
     Section 6.4.1).  An endpoint MUST NOT add new parameters to this
     chunk; it MUST be the same (including its Sequence Number) as
     the last ASCONF sent.  An endpoint MAY, however, bundle an
     additional ASCONF with new ASCONF parameters with the next
     Sequence Number.  For details, see Section 5.5.

This patch fix to choose an alternate destination address when
re-transmit the ASCONF chunk, with some dup codes cleanup.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
include/net/sctp/structs.h
net/sctp/associola.c
net/sctp/sm_sideeffect.c