]> xenbits.xensource.com Git - libvirt.git/commitdiff
fix deprecated iptables command syntax
authorSteve Yarmie <steve.yarmie@gmail.com>
Fri, 20 Nov 2009 14:29:59 +0000 (15:29 +0100)
committerDaniel Veillard <veillard@redhat.com>
Fri, 20 Nov 2009 14:29:59 +0000 (15:29 +0100)
* src/util/iptables.c: `--option !  this` is deprecated in favor of
  `! --option this` syntax, change the output command accordingly

src/util/iptables.c

index 284f3c0f02dd69cdfebe645bacfbf64645ac1731..36d65e43188b049b4121ffb16e133f3cf7bb2922 100644 (file)
@@ -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);
     }