]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SCTP: Limit association max_retrans setting in setsockopt.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Sat, 26 Aug 2006 00:40:29 +0000 (02:40 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sat, 26 Aug 2006 00:40:29 +0000 (02:40 +0200)
commit2d17897a633579202cb548e759756a1cc823568b
tree0e5af47c5968d6849199281ee009cedbed7f9bb5
parentfe7e513c0b87b1b41f162eb6d5ee9d48cdaaf578
SCTP: Limit association max_retrans setting in setsockopt.

When using ASSOCINFO socket option, we need to limit the number of
maximum association retransmissions to be no greater than the sum
of all the path retransmissions. This is specified in Section 7.1.2
of the SCTP socket API draft.
However, we only do this if the association has multiple paths. If
there is only one path, the protocol stack will use the
assoc_max_retrans setting when trying to retransmit packets.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/sctp/socket.c