[ofa-general] Question about addr_resolve_remote
Roland Dreier
rdreier at cisco.com
Thu Jul 30 11:31:14 PDT 2009
> Do you think it would be a problem if I changed
> neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, rt->idev->dev);
> to
> neigh = neigh_lookup(&arp_tbl, &rt->rt_dst, rt->idev->dev);
Yes I think it would be a problem, because what if you are trying to
connect to a destination that is behind a router? (and keep in mind, in
your example, it is perfectly correct to try and connect to 4.5.7.8 if
it happens to be reachable via a router from your RNIC of 192.168.0.1)
- R.
More information about the general
mailing list