diff options
author | David S. Miller <davem@davemloft.net> | 2011-06-06 16:05:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-06 16:05:55 -0400 |
commit | 5d0c90cf4d417ccafcd1af4ec32945c3f80e98e2 (patch) | |
tree | a20778871b29a651aef304131389fe964886aa57 /net/sctp | |
parent | e3cc055c18ab575291acf0af7622a2e97c4728fa (diff) |
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: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/protocol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index af0a6b0fc9b6..ab5ded2c58de 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -637,6 +637,7 @@ void sctp_addr_wq_timeout_handler(unsigned long arg) | |||
637 | " for cmd %d at entry %p\n", &sctp_addr_waitq, &addrw->a, addrw->state, | 637 | " for cmd %d at entry %p\n", &sctp_addr_waitq, &addrw->a, addrw->state, |
638 | addrw); | 638 | addrw); |
639 | 639 | ||
640 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) | ||
640 | /* Now we send an ASCONF for each association */ | 641 | /* Now we send an ASCONF for each association */ |
641 | /* Note. we currently don't handle link local IPv6 addressees */ | 642 | /* Note. we currently don't handle link local IPv6 addressees */ |
642 | if (addrw->a.sa.sa_family == AF_INET6) { | 643 | if (addrw->a.sa.sa_family == AF_INET6) { |
@@ -659,7 +660,7 @@ void sctp_addr_wq_timeout_handler(unsigned long arg) | |||
659 | break; | 660 | break; |
660 | } | 661 | } |
661 | } | 662 | } |
662 | 663 | #endif | |
663 | list_for_each_entry(sp, &sctp_auto_asconf_splist, auto_asconf_list) { | 664 | list_for_each_entry(sp, &sctp_auto_asconf_splist, auto_asconf_list) { |
664 | struct sock *sk; | 665 | struct sock *sk; |
665 | 666 | ||