diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-06-16 10:07:23 +0800 |
---|---|---|
committer | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-09-04 18:20:55 -0400 |
commit | 3cd9749c0b758223a71e059fa44c2234547d9ee0 (patch) | |
tree | 62f99f43c552621e3fbdc30aaf56583073058afd /net/sctp | |
parent | 44e65c1ef1e771b32c82546ebfba910137aa8871 (diff) | |
download | op-kernel-dev-3cd9749c0b758223a71e059fa44c2234547d9ee0.zip op-kernel-dev-3cd9749c0b758223a71e059fa44c2234547d9ee0.tar.gz |
sctp: update the route for non-active transports after addresses are added
Update the route and saddr entries for the non-active transports as some
of the added addresses can be used as better source addresses, or may
be there is a better route.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 3d867ce..9d881a6 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c @@ -3134,6 +3134,14 @@ static void sctp_asconf_param_success(struct sctp_association *asoc, saddr->state = SCTP_ADDR_SRC; } local_bh_enable(); + list_for_each_entry(transport, &asoc->peer.transport_addr_list, + transports) { + if (transport->state == SCTP_ACTIVE) + continue; + dst_release(transport->dst); + sctp_transport_route(transport, NULL, + sctp_sk(asoc->base.sk)); + } break; case SCTP_PARAM_DEL_IP: local_bh_disable(); |