]> git.baikalelectronics.ru Git - kernel.git/commit
[SCTP]: Limit association max_retrans setting in setsockopt.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Sun, 18 Jun 2006 05:54:51 +0000 (22:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jun 2006 05:54:51 +0000 (22:54 -0700)
commite02b4b0f98522166fe85a7dbbd34a0a7d547313c
treea493d4130e07f14e29e89cc746a59475cbb073f4
parent86da06131fce89943bf11cd14363768260095afb
[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>
net/sctp/socket.c