direct-io.hg

changeset 8334:b4dfb49332d2

Remove unused netmask,network etc. These were used when we called ifconfig to
set up the networking, but now that we use ip directly, we don't need them, and
they were in any case broken when the ip address was specified without a suffix.

This work is by James Dykman <dykman@us.ibm.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Dec 12 11:15:29 2005 +0000 (2005-12-12)
parents bdcb115c667a
children c8378d3c3af8
files tools/examples/vif-nat
line diff
     1.1 --- a/tools/examples/vif-nat	Sun Dec 11 00:20:08 2005 +0100
     1.2 +++ b/tools/examples/vif-nat	Mon Dec 12 11:15:29 2005 +0000
     1.3 @@ -81,17 +81,6 @@ router_ip=$(routing_ip "$ip")
     1.4  
     1.5  # Split the given IP/bits pair.
     1.6  vif_ip=`echo ${ip} | awk -F/ '{print $1}'`
     1.7 -bits=`echo ${ip} | awk -F/ '{print $2}'`
     1.8 -
     1.9 -# Convert $bits and $vif_ip to integers, mask appropriately to get a network
    1.10 -# address, and convert them both to dotted quads.
    1.11 -
    1.12 -intmask=$(( (0xFFFFFFFF << (32 - $bits)) & 0xFFFFFFFF ))
    1.13 -vif_int=$(( $(echo "((($vif_ip" | sed -e 's#\.#)\*256\+#g') ))
    1.14 -
    1.15 -netmask=$(dotted_quad $intmask)
    1.16 -network=$(dotted_quad $(( $vif_int & $intmask )) )
    1.17 -
    1.18  
    1.19  hostname=$(xenstore_read "$XENBUS_PATH/domain" | tr -- '_.:/+' '-----')
    1.20  if [ "$vifid" != "1" ]