From: Julian Anastasov <ja@ssi.bg>
Date: Mon, 23 Jul 2012 23:00:57 +0300 (EEST)
May be we can replace rt_iif with skb->dev->ifindex ?
If we have dst, there must be skb->dev ? Only for
output routes we should check places that rely on
inet_iif().
Right, just as I was drinking my first coffee after reading
your previous email I was thinking about this.
The only time skb->dev->ifindex can change from rt->rt_iif is when we
demux a tunnel, but at that point we would first reinject and do
another route lookup, at which point rt->rt_iif would match again.
And this is the intended semantic of this field anyways.
I'll look into what we can do here, and I'll also try to come up
with some ideas wrt. the DIRECTSRC issue as well.
Thanks Julian.