]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Set socket source address when additing first transport
authorVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 11 Nov 2009 11:54:37 +0000 (11:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Nov 2009 03:56:52 +0000 (19:56 -0800)
commitab3c1a775fa595ef75e89e68ba48e3b918011c2f
treed741fc090641c3cb01f872bce286ccc2265b4b6f
parentca39b4a08cf69075e352dc3dee4b261bee2a1080
sctp: Set socket source address when additing first transport

Recent commits
sctp: Get rid of an extra routing lookup when adding a transport
and
sctp: Set source addresses on the association before adding transports

changed when routes are added to the sctp transports.  As such,
we didn't set the socket source address correctly when adding the first
transport.  The first transport is always the primary/active one, so
when adding it, set the socket source address.  This was causing
regression failures in SCTP tests.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/transport.c