debuggers.hg
changeset 22899:5748a27b388d
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>
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>
author | Michael Young <m.a.young@durham.ac.uk> |
---|---|
date | Tue Feb 01 19:16:28 2011 +0000 (2011-02-01) |
parents | 3edd21ffe407 |
children | b84f33452d43 |
files | tools/hotplug/Linux/network-route |
line diff
1.1 --- a/tools/hotplug/Linux/network-route Tue Feb 01 19:10:56 2011 +0000 1.2 +++ b/tools/hotplug/Linux/network-route Tue Feb 01 19:16:28 2011 +0000 1.3 @@ -22,7 +22,7 @@ dir=$(dirname "$0") 1.4 1.5 evalVariables "$@" 1.6 1.7 -netdev=${netdev:-eth${vifnum}} 1.8 +netdev=${netdev:-eth0} 1.9 1.10 echo 1 >/proc/sys/net/ipv4/ip_forward 1.11 echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp