Set the arp_notify sysctl on new interfaces, and set all sysctls before the interface... geofft
authorGeoffrey Thomas <geofft@mit.edu>
Sun, 15 Jun 2014 21:57:13 +0000 (14:57 -0700)
committerGeoffrey Thomas <geofft@mit.edu>
Sun, 15 Jun 2014 21:58:17 +0000 (14:58 -0700)
debian/changelog
vif-invirtroute

index a4ab8b3..aeb13f8 100644 (file)
@@ -1,3 +1,10 @@
+invirt-xen-config (0.0.54) UNRELEASED; urgency=low
+
+  * Set the arp_notify sysctl on new interfaces, and set all sysctls
+    before the interface is brought up.
+
+ -- Geoffrey Thomas <geofft@mit.edu>  Sun, 15 Jun 2014 14:56:20 -0700
+
 invirt-xen-config (0.0.53) unstable; urgency=low
 
   * Fix machine UUID assignment after SQLAlchemy started returning Unicode
index 4872758..ffa7c73 100755 (executable)
@@ -31,10 +31,11 @@ dev=${dev:-${vif}}
 
 case "$command" in
     online|add)
-        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
+        echo 1 >/proc/sys/net/ipv4/conf/${dev}/arp_notify
+        echo 1 >/proc/sys/net/ipv4/conf/${dev}/rp_filter
+        ifconfig ${dev} ${main_ip} netmask 255.255.255.255 up
+        xenstore-write "$XENBUS_PATH/feature-gso-tcpv4" 0
         if [ x${qemu_online} != xyes ]; then
           ethtool -K ${dev} tx off
         fi