rt needs to be reset if skb rerouted by route_me_harder.
BTW, I'm now convinced that route_me_harder is a bad idea: doing
as a part of the netfilter architecture is too hard, and should be
left to the netfilter modules which actually hack the packets. But I
want 2.4.0 in our lifetime (maybe 2.4.1).
Rusty.
diff -urN -X /tmp/filezRIWiT --minimal linux-2.4.0-test7-7/net/ipv4/ip_output.c
working-2.4.0-test7-7/net/ipv4/ip_output.c
--- linux-2.4.0-test7-7/net/ipv4/ip_output.c Tue Mar 28 04:35:56 2000
+++ working-2.4.0-test7-7/net/ipv4/ip_output.c Thu Aug 24 16:48:33 2000
@@ -327,6 +327,7 @@
kfree_skb(skb);
return -EHOSTUNREACH;
}
+ rt = (struct rtable *)skb->dst;
}
#endif
--
Hacking time.
|