diff options
author | Steve Yarmie <steve.yarmie@gmail.com> | 2009-11-20 15:29:59 +0100 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2009-11-20 15:29:59 +0100 |
commit | 264f3ddac977ce5aed64656a5a12310276d4975e (patch) | |
tree | b88f60dfb4bccdac0b6897703bd9220adce9e3c3 | |
parent | remove sysfs_path and parent_sysfs_path from XML (diff) | |
download | libvirt-264f3ddac977ce5aed64656a5a12310276d4975e.tar.gz libvirt-264f3ddac977ce5aed64656a5a12310276d4975e.tar.bz2 libvirt-264f3ddac977ce5aed64656a5a12310276d4975e.zip |
fix deprecated iptables command syntax
* src/util/iptables.c: `--option ! this` is deprecated in favor of
`! --option this` syntax, change the output command accordingly
-rw-r--r-- | src/util/iptables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/iptables.c b/src/util/iptables.c index 284f3c0f0..36d65e431 100644 --- a/src/util/iptables.c +++ b/src/util/iptables.c @@ -1067,7 +1067,7 @@ iptablesForwardMasquerade(iptablesContext *ctx, return iptablesAddRemoveRule(ctx->nat_postrouting, action, "--source", network, - "--destination", "!", network, + "!", "--destination", network, "--out-interface", physdev, "--jump", "MASQUERADE", NULL); @@ -1075,7 +1075,7 @@ iptablesForwardMasquerade(iptablesContext *ctx, return iptablesAddRemoveRule(ctx->nat_postrouting, action, "--source", network, - "--destination", "!", network, + "!", "--destination", network, "--jump", "MASQUERADE", NULL); } |