]> git.baikalelectronics.ru Git - kernel.git/commit
[SCTP]: Fix protocol violation when receiving an error lenght INIT-ACK
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>
Sun, 13 Apr 2008 01:39:34 +0000 (18:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Apr 2008 01:39:34 +0000 (18:39 -0700)
commitad8ad1204049c972612f614c13bffd8839a8ad4e
treecfab9dcd7b29eb150bd6168cf40c375bd9006bbe
parentfd6cee0d4088d87e871291d522ac76de877a2fed
[SCTP]: Fix protocol violation when receiving an error lenght INIT-ACK

When receiving an error length INIT-ACK during COOKIE-WAIT,
a 0-vtag ABORT will be responsed. This action violates the
protocol apparently. This patch achieves the following things.
1 If the INIT-ACK contains all the fixed parameters, use init-tag
  recorded from INIT-ACK as vtag.
2 If the INIT-ACK doesn't contain all the fixed parameters,
  just reflect its vtag.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/command.h
net/sctp/outqueue.c
net/sctp/sm_sideeffect.c
net/sctp/sm_statefuns.c