ia64/xen-unstable

changeset 8325:e6d71c99c84d

Squelch error message from iptables (we log this later if necessary).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Dec 12 16:44:27 2005 +0000 (2005-12-12)
parents 58397be18c52
children 4aa340c5bf6e
files tools/examples/vif-common.sh
line diff
     1.1 --- a/tools/examples/vif-common.sh	Mon Dec 12 16:43:48 2005 +0000
     1.2 +++ b/tools/examples/vif-common.sh	Mon Dec 12 16:44:27 2005 +0000
     1.3 @@ -62,7 +62,8 @@ function frob_iptable()
     1.4      local c="-D"
     1.5    fi
     1.6  
     1.7 -  iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT ||
     1.8 +  iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT \
     1.9 +    2>/dev/null ||
    1.10      [ "$c" == "-D" ] ||
    1.11      log err \
    1.12       "iptables $c FORWARD -m physdev --physdev-in $vif $@ -j ACCEPT failed.