Commit 3ee46e24 authored by Mike Hibler's avatar Mike Hibler

Disable reverse path filtering on expt interfaces.

Til we fix the route calculator to produce symmetric routes.
parent 27e07370
......@@ -758,6 +758,12 @@ sub os_ifconfig_line($$$$$$$$;$$$)
else {
$uplines .= sprintf($IFCONFIG, $iface, $inet, $mask);
$downlines = "$IFCONFIGBIN $iface down";
#
# XXX make sure we don't do reverse path filtering on the interface;
# our current route generator which will produce asymmetric routes.
#
$uplines .= "\n /sbin/sysctl net.ipv4.conf.$iface.rp_filter=0";
}
return ($uplines, $downlines);
......@@ -912,6 +918,12 @@ sub os_ifconfig_veth($$$$$;$$$$%)
# configure the MAC address.
$uplines .= "\n $IFCONFIGBIN $vdev hw ether $vmac"
if ($vmac);
#
# XXX make sure we don't do reverse path filtering on the interface;
# our current route generator which will produce asymmetric routes.
#
$uplines .= "\n /sbin/sysctl net.ipv4.conf.$vdev.rp_filter=0";
$downlines .= "$IFCONFIGBIN $vdev down\n ";
$downlines .= "$VLANCONFIG rem $vdev";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment