~ubuntu-branches/ubuntu/quantal/iptables/quantal

« back to all changes in this revision

Viewing changes to debian/patch/03-compilation-error.patch

  • Committer: Colin Watson
  • Date: 2010-07-14 15:59:00 UTC
  • mfrom: (24.1.1 iptables)
  • Revision ID: cjwatson@canonical.com-20100714155900-pxdoxb81l895eooy
Tags: 1.4.4-2ubuntu3
mergeĀ lp:~csurbhi/ubuntu/maverick/iptables/iptable-fix.600195

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: b/configure
 
2
===================================================================
 
3
--- a/configure
 
4
+++ b/configure
 
5
@@ -11441,6 +11441,7 @@
 
6
        -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
 
7
        -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
 
8
        -Winline -pipe \
 
9
+       -fno-strict-aliasing -Werror\
 
10
        -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
 
11
 kinclude_CFLAGS="";
 
12
 if [ -n "$kbuilddir" ]; then
 
13
Index: b/include/linux/netfilter_ipv4/ipt_ECN.h
 
14
===================================================================
 
15
--- a/include/linux/netfilter_ipv4/ipt_ECN.h
 
16
+++ b/include/linux/netfilter_ipv4/ipt_ECN.h
 
17
@@ -8,9 +8,9 @@
 
18
 */
 
19
 #ifndef _IPT_ECN_TARGET_H
 
20
 #define _IPT_ECN_TARGET_H
 
21
-#include <linux/netfilter_ipv4/ipt_DSCP.h>
 
22
+#include <linux/netfilter/xt_DSCP.h>
 
23
 
 
24
-#define IPT_ECN_IP_MASK        (~IPT_DSCP_MASK)
 
25
+#define IPT_ECN_IP_MASK (~XT_DSCP_MASK)
 
26
 
 
27
 #define IPT_ECN_OP_SET_IP      0x01    /* set ECN bits of IPv4 header */
 
28
 #define IPT_ECN_OP_SET_ECE     0x10    /* set ECE bit of TCP header */
 
29
Index: b/include/linux/netfilter_ipv4/ipt_ecn.h
 
30
===================================================================
 
31
--- a/include/linux/netfilter_ipv4/ipt_ecn.h
 
32
+++ b/include/linux/netfilter_ipv4/ipt_ecn.h
 
33
@@ -8,9 +8,9 @@
 
34
 */
 
35
 #ifndef _IPT_ECN_H
 
36
 #define _IPT_ECN_H
 
37
-#include <linux/netfilter_ipv4/ipt_dscp.h>
 
38
+#include <linux/netfilter/xt_DSCP.h>
 
39
 
 
40
-#define IPT_ECN_IP_MASK        (~IPT_DSCP_MASK)
 
41
+#define IPT_ECN_IP_MASK (~XT_DSCP_MASK)
 
42
 
 
43
 #define IPT_ECN_OP_MATCH_IP    0x01
 
44
 #define IPT_ECN_OP_MATCH_ECE   0x10
 
45
Index: b/libiptc/libip4tc.c
 
46
===================================================================
 
47
--- a/libiptc/libip4tc.c
 
48
+++ b/libiptc/libip4tc.c
 
49
@@ -93,8 +93,6 @@
 
50
 #define TC_FREE                        iptc_free
 
51
 #define TC_COMMIT              iptc_commit
 
52
 #define TC_STRERROR            iptc_strerror
 
53
-#define TC_NUM_RULES           iptc_num_rules
 
54
-#define TC_GET_RULE            iptc_get_rule
 
55
 
 
56
 #define TC_AF                  AF_INET
 
57
 #define TC_IPPROTO             IPPROTO_IP
 
58
Index: b/libiptc/libip6tc.c
 
59
===================================================================
 
60
--- a/libiptc/libip6tc.c
 
61
+++ b/libiptc/libip6tc.c
 
62
@@ -88,8 +88,6 @@
 
63
 #define TC_FREE                        ip6tc_free
 
64
 #define TC_COMMIT              ip6tc_commit
 
65
 #define TC_STRERROR            ip6tc_strerror
 
66
-#define TC_NUM_RULES           ip6tc_num_rules
 
67
-#define TC_GET_RULE            ip6tc_get_rule
 
68
 
 
69
 #define TC_AF                  AF_INET6
 
70
 #define TC_IPPROTO             IPPROTO_IPV6
 
71
Index: b/libiptc/libiptc.c
 
72
===================================================================
 
73
--- a/libiptc/libiptc.c
 
74
+++ b/libiptc/libiptc.c
 
75
@@ -1563,45 +1563,6 @@
 
76
        return r->entry;
 
77
 }
 
78
 
 
79
-/* How many rules in this chain? */
 
80
-static unsigned int
 
81
-TC_NUM_RULES(const char *chain, struct xtc_handle *handle)
 
82
-{
 
83
-       struct chain_head *c;
 
84
-       iptc_fn = TC_NUM_RULES;
 
85
-       CHECK(handle);
 
86
-
 
87
-       c = iptcc_find_label(chain, handle);
 
88
-       if (!c) {
 
89
-               errno = ENOENT;
 
90
-               return (unsigned int)-1;
 
91
-       }
 
92
-
 
93
-       return c->num_rules;
 
94
-}
 
95
-
 
96
-static const STRUCT_ENTRY *
 
97
-TC_GET_RULE(const char *chain, unsigned int n, struct xtc_handle *handle)
 
98
-{
 
99
-       struct chain_head *c;
 
100
-       struct rule_head *r;
 
101
-
 
102
-       iptc_fn = TC_GET_RULE;
 
103
-
 
104
-       CHECK(handle);
 
105
-
 
106
-       c = iptcc_find_label(chain, handle);
 
107
-       if (!c) {
 
108
-               errno = ENOENT;
 
109
-               return NULL;
 
110
-       }
 
111
-
 
112
-       r = iptcc_get_rule_num(c, n);
 
113
-       if (!r)
 
114
-               return NULL;
 
115
-       return r->entry;
 
116
-}
 
117
-
 
118
 /* Returns a pointer to the target name of this position. */
 
119
 static const char *standard_target_map(int verdict)
 
120
 {