[Devel] [KERNEL COMMIT]: diff-venet-srccheck-fix-20051208
Kirill Korotaev
dev at sw.ru
Sat Dec 10 04:04:29 PST 2005
Committed in 022stab053
Patch from Denis (den@) and Pavel (xemul@):
When ip_rt_src_check is off we still can try
to route multicast/broadcast packets.
Bug #55476
-------------- next part --------------
--- ./net/ipv4/route.c.ipr 2005-12-08 12:33:07.000000000 +0300
+++ ./net/ipv4/route.c 2005-12-08 20:05:15.964911728 +0300
@@ -2145,6 +2145,12 @@ static int ip_route_output_slow(struct r
Luckily, this hack is good workaround.
*/
+ if (dev_out == NULL) {
+ dev_out = ip_dev_find(oldflp->fl4_src);
+ if (dev_out == NULL)
+ goto out;
+ }
+
fl.oif = dev_out->ifindex;
goto make_route;
}
More information about the Devel
mailing list