Package: libvirt / 0.8.3-5+squeeze5

0008-Disable-CHECKSUM-rule.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Wed, 6 Oct 2010 18:37:20 +0200
Subject: [PATCH] Disable CHECKSUM rule

not supported by Squeeze's iptables

Closes: #598330
---
 src/util/iptables.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/util/iptables.c b/src/util/iptables.c
index 1b905bb..2200926 100644
--- a/src/util/iptables.c
+++ b/src/util/iptables.c
@@ -795,6 +795,7 @@ iptablesOutputFixUdpChecksum(iptablesContext *ctx,
                              int port,
                              int action)
 {
+#if 0
     char portstr[32];
 
     snprintf(portstr, sizeof(portstr), "%d", port);
@@ -807,6 +808,9 @@ iptablesOutputFixUdpChecksum(iptablesContext *ctx,
                                  "--destination-port", portstr,
                                  "--jump", "CHECKSUM", "--checksum-fill",
                                  NULL);
+#else
+    return 0;
+#endif
 }
 
 /**
--