netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: linux-next: Tree for June 6 (sctp)
       [not found] <20110606132036.aebd73a4.sfr@canb.auug.org.au>
@ 2011-06-06 19:55 ` Randy Dunlap
  2011-06-06 20:06   ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2011-06-06 19:55 UTC (permalink / raw)
  To: Stephen Rothwell, linux-sctp; +Cc: linux-next, LKML, netdev

On Mon, 6 Jun 2011 13:20:36 +1000 Stephen Rothwell wrote:

> Hi all,
> 
> Changes since 20110603:


when CONFIG_IPV6 is not enabled:

ERROR: "ipv6_chk_addr" [net/sctp/sctp.ko] undefined!



---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: linux-next: Tree for June 6 (sctp)
  2011-06-06 19:55 ` linux-next: Tree for June 6 (sctp) Randy Dunlap
@ 2011-06-06 20:06   ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-06-06 20:06 UTC (permalink / raw)
  To: randy.dunlap; +Cc: sfr, linux-sctp, linux-next, linux-kernel, netdev

From: Randy Dunlap <randy.dunlap@oracle.com>
Date: Mon, 6 Jun 2011 12:55:32 -0700

> On Mon, 6 Jun 2011 13:20:36 +1000 Stephen Rothwell wrote:
> 
>> Hi all,
>> 
>> Changes since 20110603:
> 
> 
> when CONFIG_IPV6 is not enabled:
> 
> ERROR: "ipv6_chk_addr" [net/sctp/sctp.ko] undefined!

I'll push the following after some build testing, thanks.

--------------------
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>
---
 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 af0a6b0..ab5ded2 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -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,
 		    addrw);
 
+#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
 		/* Now we send an ASCONF for each association */
 		/* Note. we currently don't handle link local IPv6 addressees */
 		if (addrw->a.sa.sa_family == AF_INET6) {
@@ -659,7 +660,7 @@ void sctp_addr_wq_timeout_handler(unsigned long arg)
 				break;
 			}
 		}
-
+#endif
 		list_for_each_entry(sp, &sctp_auto_asconf_splist, auto_asconf_list) {
 			struct sock *sk;
 
-- 
1.7.5.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-06 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20110606132036.aebd73a4.sfr@canb.auug.org.au>
2011-06-06 19:55 ` linux-next: Tree for June 6 (sctp) Randy Dunlap
2011-06-06 20:06   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).