sctp: support ipv6 nonlocal bind
authorXin Long <lucien.xin@gmail.com>
Fri, 22 Jul 2016 09:38:51 +0000 (17:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2016 17:46:04 +0000 (10:46 -0700)
commit9b97420228881e839b76c8a4506da3cb187bf004
tree181d0fed0f0af679f560e8c5058ede0d0dd01534
parentda54bb13c02660544c286e7922b2ec660e5b1e77
sctp: support ipv6 nonlocal bind

This patch makes sctp support ipv6 nonlocal bind by adding
sp->inet.freebind and net->ipv6.sysctl.ip_nonlocal_bind
check in sctp_v6_available as what sctp did to support
ipv4 nonlocal bind (commit cdac4e077489).

Reported-by: Shijoe George <spanjikk@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/ipv6.c