Commit 5d0c90cf4d417ccafcd1af4ec32945c3f80e98e2
1 parent
e3cc055c18
Exists in
master
and in
38 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
net/sctp/protocol.c
... | ... | @@ -637,6 +637,7 @@ |
637 | 637 | " for cmd %d at entry %p\n", &sctp_addr_waitq, &addrw->a, addrw->state, |
638 | 638 | addrw); |
639 | 639 | |
640 | +#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) | |
640 | 641 | /* Now we send an ASCONF for each association */ |
641 | 642 | /* Note. we currently don't handle link local IPv6 addressees */ |
642 | 643 | if (addrw->a.sa.sa_family == AF_INET6) { |
... | ... | @@ -659,7 +660,7 @@ |
659 | 660 | break; |
660 | 661 | } |
661 | 662 | } |
662 | - | |
663 | +#endif | |
663 | 664 | list_for_each_entry(sp, &sctp_auto_asconf_splist, auto_asconf_list) { |
664 | 665 | struct sock *sk; |
665 | 666 |