WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] network:

ChangeSet 1.1636, 2005/06/02 11:01:09+01:00, cl349@xxxxxxxxxxxxxxxxxxxx

        network:
          Copy netmask across to veth0.
        Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>



 network |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/tools/examples/network b/tools/examples/network
--- a/tools/examples/network    2005-06-02 10:02:47 -04:00
+++ b/tools/examples/network    2005-06-02 10:02:47 -04:00
@@ -66,10 +66,10 @@
     fi
     # Address lines start with 'inet' and have the device in them.
     # Replace 'inet' with 'ip addr add' and change the device name $src
-    # to 'dev $src'. Remove netmask as we'll add routes later.
+    # to 'dev $src'.
     ip addr show dev ${src} | egrep '^ *inet ' | sed -e "
 s/inet/ip addr add/
-s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@
+s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/[0-9]\+\)@\1@
 s/${src}/dev ${dst}/
 " | sh -e
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>