Alexey Dobriyan wrote:
ip_route_me_harder() is called on output codepaths: 1) IPVS: honestly, not sure, it can be called during forwarding 2) IPv4 REJECT: refreshing comment re skb->dst is valid and assigment of skb->dst right before call :^) 3) NAT: called in LOCAL_OUT hook 4) iptable_mangle: LOCAL_OUT hook 5) nf_ip_reroute(): LOCAL_OUT hook (no clue about queueing packets to luserspace)
skb->dst->dev seems OK in all these cases.
P.S.: IPv6 version is also called by mangling code on input, what's the story behind this discrepancy?
That looks wrong, I think the reason for this bug is that IPv6 originally didn't support routing rules, so the call was #ifdef 0'ed, then enabled without checking the hooks. I'll queue up a fix. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html