Herbert Xu wrote: > Patrick McHardy <[EMAIL PROTECTED]> wrote: > >>This leaves the question what to do in the path after ip_output, >>when skb->dev points to the output device. We don't know the >>input device anymore, so there doesn't seem to be a way to make >>it do what the sysctl promises. > > > Perhaps we could change things so that the setting of skb->dev is > delayed until the packet has completely left the IP stack? It'd > require a massive audit though of the IP stack though.
The IP stack shouldn't be too hard, we currently set skb->dev in ip_output, after that we only have the POST_ROUTING hook and ip_fragment which care. It wouldn't help with ipip/ip_gre though, at that point skb->dev must point to the tunnel device. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html