]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Release all routes when processing acks ADD_IP or DEL_IP
authorVlad Yasevich <vladislav.yasevich@hp.com>
Mon, 18 Apr 2011 19:15:22 +0000 (19:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 04:45:22 +0000 (21:45 -0700)
commitc882d63af894951412ffcb77a4b8679339996a56
tree75edcd54d0d475cb1c3a21e06422c333b5a0096f
parent47e5ff9cf01093ac53bf784e26ab94a2191b136a
sctp: Release all routes when processing acks ADD_IP or DEL_IP

When processing an ACK for ADD_IP parameter, we only release
the routes on non-active transports.  This can cause a wrong
source address to be used.  We can release the routes and
cause new route lookups and source address selection so that
new addresses can be used as source.  Additionally, we don't need
to lookup routes for all transports at the same time.  We can let
the transmit code path update the cached route when the transport
actually sends something.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_make_chunk.c