X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/blobdiff_plain/fed68a37d00581faff9e2ef911fc544f0cfbca1a..refs/heads/prod:/vif-invirtroute?ds=sidebyside diff --git a/vif-invirtroute b/vif-invirtroute index 8447805..4663664 100755 --- a/vif-invirtroute +++ b/vif-invirtroute @@ -35,6 +35,7 @@ case "$command" in ifconfig ${dev} ${main_ip} netmask 255.255.255.255 up echo 1 >/proc/sys/net/ipv4/conf/${dev}/proxy_arp echo 1 >/proc/sys/net/ipv4/conf/${dev}/rp_filter + xenstore-write "$XENBUS_PATH/feature-gso-tcpv4" 0 if [ x${qemu_online} != xyes ]; then ethtool -K ${dev} tx off fi @@ -55,9 +56,11 @@ if [ ${vif_type} != "ioemu" -o x${qemu_online} = xyes ] ; then # the guest using those addresses. for addr in ${ip} ; do ${cmdprefix} ip route ${ipcmd} ${addr} dev ${dev} src ${main_ip} - arpspoof -i $(invirt-getconf xen.network.iface) -t 18.181.0.1 ${addr}& - sleep 5 - kill %arpspoof + if [ "$command" == "online" ]; then + arpspoof -i $(invirt-getconf xen.iface) -t 18.181.0.1 ${addr}& + sleep 5 + kill %arpspoof + fi done fi fi