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] Don't call iptables if it is not installed. This code is

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Don't call iptables if it is not installed. This code is only there to ensure
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 12 Nov 2005 10:54:06 +0000
Delivery-date: Sat, 12 Nov 2005 10:54:21 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 980967b0b161aa2a0d77066c5c43afa1c4e3a14c
# Parent  1444adb1c407d6030a2c294976991414b47487d5
Don't call iptables if it is not installed.  This code is only there to ensure
that packets between domU and the bridge are not firewalled, so if iptables is
not installed, then there is no worry.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 1444adb1c407 -r 980967b0b161 tools/examples/vif-common.sh
--- a/tools/examples/vif-common.sh      Fri Nov 11 16:04:17 2005
+++ b/tools/examples/vif-common.sh      Fri Nov 11 16:56:02 2005
@@ -53,7 +53,8 @@
     local c="-D"
   fi
 
-  iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT
+  iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT ||
+    fatal "iptables $c FORWARD -m physdev --physdev-in $vif $@ -j ACCEPT 
failed"
 }
 
 
@@ -66,6 +67,11 @@
 #
 function handle_iptable()
 {
+  if ! which iptables >&/dev/null
+  then
+    return
+  fi
+
   if [ "$ip" != "" ]
   then
       local addr

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Don't call iptables if it is not installed. This code is only there to ensure, Xen patchbot -unstable <=