Skip to content

Commit

Permalink
[IPV4]: Remove IPVS icmp hack from route.c for now.
Browse files Browse the repository at this point in the history
Revert: 2d771cd

This is dangerous if enabled and a better solution to the
problem is being worked on.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 18, 2007
1 parent d739437 commit f6c5d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -2396,7 +2396,7 @@ static int ip_route_output_slow(struct rtable **rp, const struct flowi *oldflp)

/* It is equivalent to inet_addr_type(saddr) == RTN_LOCAL */
dev_out = ip_dev_find(oldflp->fl4_src);
if ((dev_out == NULL) && !(sysctl_ip_nonlocal_bind))
if (dev_out == NULL)
goto out;

/* I removed check for oif == dev_out->oif here.
Expand All @@ -2407,7 +2407,7 @@ static int ip_route_output_slow(struct rtable **rp, const struct flowi *oldflp)
of another iface. --ANK
*/

if (dev_out && oldflp->oif == 0
if (oldflp->oif == 0
&& (MULTICAST(oldflp->fl4_dst) || oldflp->fl4_dst == htonl(0xFFFFFFFF))) {
/* Special hack: user can direct multicasts
and limited broadcast via necessary interface
Expand Down

0 comments on commit f6c5d73

Please sign in to comment.