summaryrefslogtreecommitdiff
path: root/scripts/vyatta-static-dhcp.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-static-dhcp.pl')
-rwxr-xr-xscripts/vyatta-static-dhcp.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-static-dhcp.pl b/scripts/vyatta-static-dhcp.pl
index 91a4696d..cf72930c 100755
--- a/scripts/vyatta-static-dhcp.pl
+++ b/scripts/vyatta-static-dhcp.pl
@@ -27,7 +27,7 @@ if ($orouters ne $nrouters) {
system("vtysh -c 'configure terminal' -c 'ip route $route $nrouters $tab' ");
}
if (($oip ne $nip) && ($table ne "main") && ($route eq "0.0.0.0/0")) {
- my $mark = 0x7ffffff + $table;
+ my $mark = 0x7fffffff + $table;
system("sudo /sbin/iptables -t mangle -D OUTPUT -s $oip/32 -j MARK --set-mark $mark");
system("sudo /sbin/iptables -t mangle -A OUTPUT -s $nip/32 -j MARK --set-mark $mark");
}