projects
/
invirt/packages/invirt-xen-config.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the fact that we can't bump RAM quotas above 2048M
[invirt/packages/invirt-xen-config.git]
/
vif-invirtroute
diff --git
a/vif-invirtroute
b/vif-invirtroute
index
69ca710
..
b3d9207
100755
(executable)
--- a/
vif-invirtroute
+++ b/
vif-invirtroute
@@
-92,7
+92,7
@@
if [ ${vif_type} != "ioemu" -o x${qemu_online} = xyes ] ; then
${cmdprefix} ip route ${ipcmd} ${addr} dev ${dev} ${src} $metric
case "$command" in
online|add)
${cmdprefix} ip route ${ipcmd} ${addr} dev ${dev} ${src} $metric
case "$command" in
online|add)
- timeout 5 arpspoof -i $(invirt-getconf xen.iface) -t ${gateway} ${addr} || :
+ timeout -s KILL 5 arpspoof -i $(invirt-getconf xen.iface) -t ${gateway} ${addr} || :
;;
esac
done
;;
esac
done
@@
-101,7
+101,7
@@
if [ ${vif_type} != "ioemu" -o x${qemu_online} = xyes ] ; then
iptables -t nat ${ipt_action} PREROUTING -d ${other_ip} -j DNAT --to-destination ${addr}
case "$command" in
online|add)
iptables -t nat ${ipt_action} PREROUTING -d ${other_ip} -j DNAT --to-destination ${addr}
case "$command" in
online|add)
- timeout 5 arpspoof -i $(invirt-getconf xen.iface) -t ${other_gateway} ${other_ip} || :
+ timeout -s KILL 5 arpspoof -i $(invirt-getconf xen.iface) -t ${other_gateway} ${other_ip} || :
;;
esac
fi
;;
esac
fi