]> git.baikalelectronics.ru Git - kernel.git/commit
net: sctp: fix ASCONF to allow non SCTP_ADDR_SRC addresses in ipv6
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 22 Oct 2013 16:34:56 +0000 (18:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Oct 2013 20:57:14 +0000 (16:57 -0400)
commit48c2b14e6cba97afa463ef587ab5706a712bd3ec
tree04e1a1ff06f5a7a40b7d546193457942f942fbd8
parente65cfd406d262dfc4f249f50781c3c15f1080d38
net: sctp: fix ASCONF to allow non SCTP_ADDR_SRC addresses in ipv6

Commit 6a8854c2c1 ("sctp: Add ASCONF operation on the single-homed host")
implemented possible use of IPv4 addresses with non SCTP_ADDR_SRC state
as source address when sending ASCONF (ADD) packets, but IPv6 part for
that was not implemented in 6a8854c2c1. Therefore, as this is not restricted
to IPv4-only, fix this up to allow the same for IPv6 addresses in SCTP.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Cc: Michio Honda <micchie@sfc.wide.ad.jp>
Acked-by: Michio Honda <micchie@sfc.wide.ad.jp>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/ipv6.c