Commit 5d0c90cf authored by David S. Miller's avatar David S. Miller

sctp: Guard IPV6 specific code properly.

Outside of net/sctp/ipv6.c, IPV6 specific code needs to
be ifdef guarded.

This fixes build failures with IPV6 disabled.
Reported-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3cc055c
...@@ -637,6 +637,7 @@ void sctp_addr_wq_timeout_handler(unsigned long arg) ...@@ -637,6 +637,7 @@ void sctp_addr_wq_timeout_handler(unsigned long arg)
" for cmd %d at entry %p\n", &sctp_addr_waitq, &addrw->a, addrw->state, " for cmd %d at entry %p\n", &sctp_addr_waitq, &addrw->a, addrw->state,
addrw); addrw);
#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
/* Now we send an ASCONF for each association */ /* Now we send an ASCONF for each association */
/* Note. we currently don't handle link local IPv6 addressees */ /* Note. we currently don't handle link local IPv6 addressees */
if (addrw->a.sa.sa_family == AF_INET6) { if (addrw->a.sa.sa_family == AF_INET6) {
...@@ -659,7 +660,7 @@ void sctp_addr_wq_timeout_handler(unsigned long arg) ...@@ -659,7 +660,7 @@ void sctp_addr_wq_timeout_handler(unsigned long arg)
break; break;
} }
} }
#endif
list_for_each_entry(sp, &sctp_auto_asconf_splist, auto_asconf_list) { list_for_each_entry(sp, &sctp_auto_asconf_splist, auto_asconf_list) {
struct sock *sk; struct sock *sk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment