RE: [PATCH] link-local address fix for rdma_resolve_addr

Sean Hefty
2009-10-19T23:47:59Z

>@@ -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;
>
>I can believe it fixes the case you describe (ie loopback) but
>matching the *dest* IP against the local interface's IP list cannot
>possibly be right.

The intent is to see if the destination address is local. A source address may
not be given.

- Sean