[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] Pass -n to ip(6)tables



Hi,
attached patch passes -n to ip(6)tables to avoid long timeouts waiting
for DNS servers. O.k. to apply?
Cheers,
 -- Guido
>From aa7e3226adb2eb333863e0b1e52e26098a7673dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx sigxcpu org>
Date: Fri, 8 Oct 2010 16:35:03 +0200
Subject: [PATCH] Pass -n to ip(6)tables

to avoid long timeouts waiting for DNS servers
---
 src/nwfilter/nwfilter_ebiptables_driver.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nwfilter/nwfilter_ebiptables_driver.c b/src/nwfilter/nwfilter_ebiptables_driver.c
index bcbefa7..e831eb3 100644
--- a/src/nwfilter/nwfilter_ebiptables_driver.c
+++ b/src/nwfilter/nwfilter_ebiptables_driver.c
@@ -655,7 +655,7 @@ iptablesSetupVirtInPost(const char *iptables_cmd,
 {
     const char *match = MATCH_PHYSDEV_IN;
     virBufferVSprintf(buf,
-                      "res=$(%s -L " VIRT_IN_POST_CHAIN
+                      "res=$(%s -n -L " VIRT_IN_POST_CHAIN
                       " | grep \"\\%s %s\")\n"
                       "if [ \"${res}\" == \"\" ]; then "
                         CMD_DEF("%s"
@@ -3662,7 +3662,7 @@ ebiptablesDriverInit(void)
     iptables_cmd_path = virFindFileInPath("iptables");
     if (iptables_cmd_path) {
         virBufferVSprintf(&buf,
-                          CMD_DEF("%s -L FORWARD") CMD_SEPARATOR
+                          CMD_DEF("%s -n -L FORWARD") CMD_SEPARATOR
                           CMD_EXEC
                           "%s",
                           iptables_cmd_path,
@@ -3675,7 +3675,7 @@ ebiptablesDriverInit(void)
     ip6tables_cmd_path = virFindFileInPath("ip6tables");
     if (ip6tables_cmd_path) {
         virBufferVSprintf(&buf,
-                          CMD_DEF("%s -L FORWARD") CMD_SEPARATOR
+                          CMD_DEF("%s -n -L FORWARD") CMD_SEPARATOR
                           CMD_EXEC
                           "%s",
                           ip6tables_cmd_path,
-- 
1.7.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]