[SCTP]: Correctly set IP id for SCTP traffic
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 31 Oct 2006 02:54:32 +0000 (18:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Oct 2006 02:54:32 +0000 (18:54 -0800)
commit4f4443088b763ca4ac7521e9b4a881b52c294dec
treea66cdaaafd6ad08e611a6533a8793ed4c9550ca3
parentf8687afefcc821fc47c75775eec87731fe3de360
[SCTP]: Correctly set IP id for SCTP traffic

Make SCTP 1-1 style and peeled-off associations behave like TCP when
setting IP id. In both cases, we set the inet_sk(sk)->daddr and initialize
inet_sk(sk)->id to a random value.

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/protocol.c
net/sctp/socket.c