> It is wrong. skb->nh.iph->daddr has nothing to do with tunnel.
> It is destination address of initial packet, that can be everywhere
> on the Internet.
> If you changed in tunnel.c dev to tdev, just delete ip_dev_find_tunnel
> and use skb->dev instead.
Another question: Is there any chance to get the current IPIP code
to act as a generic (i.e., not restricted to a particular source address)
decapsulator? I needed such setup (of course restricted by firewalling
rules) in some cases, but I wasn't able to figure out how to set it up.
Have a nice fortnight
-- Martin `MJ' Mares <mj@gts.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "God doesn't play dice." -- Albert Einstein