Re: [PATCH net] xfrm: provide correct dst in xfrm_neigh_lookup

2017-02-27 Thread Steffen Klassert
On Sun, Feb 26, 2017 at 09:35:48PM -0500, David Miller wrote: > From: Julian Anastasov > Date: Sat, 25 Feb 2017 17:57:43 +0200 > > > Fix xfrm_neigh_lookup to provide dst->path to the > > neigh_lookup dst_ops method. > > > > When skb is provided, the IP address in packet should already > > match

Re: [PATCH net] xfrm: provide correct dst in xfrm_neigh_lookup

2017-02-26 Thread David Miller
From: Julian Anastasov Date: Sat, 25 Feb 2017 17:57:43 +0200 > Fix xfrm_neigh_lookup to provide dst->path to the > neigh_lookup dst_ops method. > > When skb is provided, the IP address in packet should already > match the dst->path address family. But for the non-skb case, > we should consider t

[PATCH net] xfrm: provide correct dst in xfrm_neigh_lookup

2017-02-25 Thread Julian Anastasov
Fix xfrm_neigh_lookup to provide dst->path to the neigh_lookup dst_ops method. When skb is provided, the IP address in packet should already match the dst->path address family. But for the non-skb case, we should consider the last tunnel address as nexthop address. Fixes: f894cbf847c9 ("net: Add