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

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($$$$$$$$;$$$) ...@@ -758,6 +758,12 @@ sub os_ifconfig_line($$$$$$$$;$$$)
else { else {
$uplines .= sprintf($IFCONFIG, $iface, $inet, $mask); $uplines .= sprintf($IFCONFIG, $iface, $inet, $mask);
$downlines = "$IFCONFIGBIN $iface down"; $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); return ($uplines, $downlines);
...@@ -912,6 +918,12 @@ sub os_ifconfig_veth($$$$$;$$$$%) ...@@ -912,6 +918,12 @@ sub os_ifconfig_veth($$$$$;$$$$%)
# configure the MAC address. # configure the MAC address.
$uplines .= "\n $IFCONFIGBIN $vdev hw ether $vmac" $uplines .= "\n $IFCONFIGBIN $vdev hw ether $vmac"
if ($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 .= "$IFCONFIGBIN $vdev down\n ";
$downlines .= "$VLANCONFIG rem $vdev"; $downlines .= "$VLANCONFIG rem $vdev";
} }
......
Supports Markdown
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