Skip to content

Commit

Permalink
RDMA/addr: Fix resolution of local IPv6 addresses
Browse files Browse the repository at this point in the history
This patch allows a local IPv6 address to be resolved by rdma_cm.

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"

Addresses: https://bugs.openfabrics.org/show_bug.cgi?id=1759
Signed-off-by: David Wilder <dwilder@us.ibm.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
David J. Wilder authored and Roland Dreier committed Oct 7, 2009
1 parent 54e05f1 commit 85f20b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/core/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ static int addr_resolve_local(struct sockaddr *src_in,

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;

Expand Down

0 comments on commit 85f20b3

Please sign in to comment.