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

Sean Hefty sean.hefty at intel.com
Mon Oct 19 16:47:59 PDT 2009


>@@ -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




More information about the ewg mailing list