aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Young <m.a.young@durham.ac.uk>2011-02-01 19:16:28 +0000
committerMichael Young <m.a.young@durham.ac.uk>2011-02-01 19:16:28 +0000
commit6fddee89c1c672edc32df58a1d1a697ba9c805f9 (patch)
tree3b238f60fa6d45a9502c43354d2e87e3c8d743e0
parent4bf774a903153931e98afbe009f1acb54af85d7a (diff)
downloadxen-6fddee89c1c672edc32df58a1d1a697ba9c805f9.tar.gz
xen-6fddee89c1c672edc32df58a1d1a697ba9c805f9.tar.bz2
xen-6fddee89c1c672edc32df58a1d1a697ba9c805f9.zip
tools/hotplug: Fix proxy arp messing about to use correct device
Fix an anomaly in /etc/xen/scripts/network-route. Currently this script contains netdev=${netdev:-eth${vifnum}} ie. netdev is set to eth${vifnum} by default. Unfortunately vifnum is not set anywhere in the xen code so the default is actually the broken "eth". And anyway the vif number (which is what vifnum ought to be) is not relevant. The patch changes the default to eth0 (which is what the comment at the top of the file says it should be). Signed-off-by: Michael Young <m.a.young@durham.ac.uk> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r--tools/hotplug/Linux/network-route2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hotplug/Linux/network-route b/tools/hotplug/Linux/network-route
index 0cf85b526a..8f6a1be9fc 100644
--- a/tools/hotplug/Linux/network-route
+++ b/tools/hotplug/Linux/network-route
@@ -22,7 +22,7 @@ dir=$(dirname "$0")
evalVariables "$@"
-netdev=${netdev:-eth${vifnum}}
+netdev=${netdev:-eth0}
echo 1 >/proc/sys/net/ipv4/ip_forward
echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp