Revert: 2d771cd86d4c3af26f34a7bcdc1b87696824cad9 This is dangerous if enabled and a better solution to the problem is being worked on.
Unified · Split
| @@ -2396,7 +2396,7 @@ static int ip_route_output_slow(struct rtable **rp, const struct flowi *oldflp) · 2395 unmodified lines | |||
| 2396 | 2396 | ||
| 2397 | /* It is equivalent to inet_addr_type(saddr) == RTN_LOCAL */ | 2397 | /* It is equivalent to inet_addr_type(saddr) == RTN_LOCAL */ |
| 2398 | dev_out = ip_dev_find(oldflp->fl4_src); | 2398 | dev_out = ip_dev_find(oldflp->fl4_src); |
| 2399 | if ((dev_out == NULL) && !(sysctl_ip_nonlocal_bind)) | 2399 | if (dev_out == NULL) |
| 2400 | goto out; | 2400 | goto out; |
| 2401 | 2401 | ||
| 2402 | /* I removed check for oif == dev_out->oif here. | 2402 | /* I removed check for oif == dev_out->oif here. |
| @@ -2407,7 +2407,7 @@ static int ip_route_output_slow(struct rtable **rp, const struct flowi *oldflp) · 4 unmodified lines | |||
| 2407 | of another iface. --ANK | 2407 | of another iface. --ANK |
| 2408 | */ | 2408 | */ |
| 2409 | 2409 | ||
| 2410 | if (dev_out && oldflp->oif == 0 | 2410 | if (oldflp->oif == 0 |
| 2411 | && (MULTICAST(oldflp->fl4_dst) || oldflp->fl4_dst == htonl(0xFFFFFFFF))) { | 2411 | && (MULTICAST(oldflp->fl4_dst) || oldflp->fl4_dst == htonl(0xFFFFFFFF))) { |
| 2412 | /* Special hack: user can direct multicasts | 2412 | /* Special hack: user can direct multicasts |
| 2413 | and limited broadcast via necessary interface | 2413 | and limited broadcast via necessary interface |