Re: [PATCH][IPv6] separation xfrm_lookup from ip6_dst_lookup
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2004-08-02 07:41:47
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2004-08-02 07:41:47
On Fri, Jul 30, 2004 at 05:12:05PM +0900, Kazunori Miyazawa wrote:
This patch separates xfrm_lookup from ip6_dst_lookup to support srcrt correctly. ip6_dst_lookup should be called with next hop. however xfrm_lookup should be called with final destination. It fixes them.
Thanks for the patch. This raises an interesting question. Is it really correct to look at the first hop address when doing the route lookup? The problem is that if we use the first-hop address as the dst when doing the route lookup then we may end up with incorrect MTU information. This is because the MTU to the final destination may well be smaller than the MTU to the first hop. It seems that Alexey thought about this six years ago according to the rthdr comment in icmpv6_rcv(). Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt