public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* Failing to resolve local ipv6 address.
@ 2009-10-07 22:49 David J. Wilder
       [not found] ` <1254955759.23471.7.camel-XfwDJb4SXxnMbYB6QlFGEg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: David J. Wilder @ 2009-10-07 22:49 UTC (permalink / raw)
  To: sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA, pradeep-r/Jw6+rmf7HQT0dZR+AlfA

Sean-

Here is a patch to allow a local ipv6 address to be resolved by rdma_cm.
I reported this in https://bugs.openfabrics.org/show_bug.cgi?id=1759

To reproduce the problem:
rping -s -v -a ::0  &
rping -c -v -a <ipv6 address local to this system> 
rdma_resolve_addr error -1

Local ipv6 address was obtained with "ip addr show ib0"


Signed-off-by: David Wilder <dwilder-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

diff -Naurp ofa_kernel-1.5.orig/drivers/infiniband/core/addr.c ofa_kernel-1.5/drivers/infiniband/core/addr.c
--- ofa_kernel-1.5.orig/drivers/infiniband/core/addr.c	2009-09-25 12:19:44.000000000 -0700
+++ ofa_kernel-1.5/drivers/infiniband/core/addr.c	2009-09-25 12:22:23.000000000 -0700
@@ -393,7 +393,7 @@ static int addr_resolve_local(struct soc
 
 		for_each_netdev(&init_net, dev)
 			if (ipv6_chk_addr(&init_net,
-					  &((struct sockaddr_in6 *) addr)->sin6_addr,
+					  &((struct sockaddr_in6 *) dst_in)->sin6_addr,
 					  dev, 1))
 				break;
 


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2009-10-07 23:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-07 22:49 Failing to resolve local ipv6 address David J. Wilder
     [not found] ` <1254955759.23471.7.camel-XfwDJb4SXxnMbYB6QlFGEg@public.gmane.org>
2009-10-07 22:55   ` [PATCH] rdma/cm: fix resolving " Sean Hefty
     [not found]     ` <26840C730CF948B48A185F3F073FFC04-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-10-07 23:04       ` Roland Dreier
     [not found]         ` <ada3a5uolfy.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2009-10-07 23:06           ` Sean Hefty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox