]> git.pld-linux.org Git - packages/iptables.git/blob - iptables-ERRNO.patch
- require llh 2.6.7.0-3 (previous versions had broken ip{,6}t API)
[packages/iptables.git] / iptables-ERRNO.patch
1 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/extensions/libip6t_ah.c iptables-1.2.9_20040225/extensions/libip6t_ah.c
2 --- iptables-1.2.9_20040225.org/extensions/libip6t_ah.c 2003-08-23 20:41:47.000000000 +0200
3 +++ iptables-1.2.9_20040225/extensions/libip6t_ah.c     2004-03-03 23:54:38.008304088 +0100
4 @@ -7,6 +7,8 @@
5  #include <errno.h>
6  #include <ip6tables.h>
7  #include <linux/netfilter_ipv6/ip6t_ah.h>
8 +
9 +#include <asm-generic/errno-base.h>
10                                          
11  /* Function which prints out usage message. */
12  static void
13 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/extensions/libip6t_dst.c iptables-1.2.9_20040225/extensions/libip6t_dst.c
14 --- iptables-1.2.9_20040225.org/extensions/libip6t_dst.c        2003-09-04 23:55:10.000000000 +0200
15 +++ iptables-1.2.9_20040225/extensions/libip6t_dst.c    2004-03-04 00:02:15.688726088 +0100
16 @@ -11,6 +11,8 @@
17  #include <sys/socket.h>
18  #include <arpa/inet.h>
19  
20 +#include <asm-generic/errno-base.h>
21 +
22  #ifdef HOPBYHOP
23  #define UNAME "HBH"
24  #define LNAME "hbh"
25 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/extensions/libip6t_esp.c iptables-1.2.9_20040225/extensions/libip6t_esp.c
26 --- iptables-1.2.9_20040225.org/extensions/libip6t_esp.c        2003-08-23 20:41:47.000000000 +0200
27 +++ iptables-1.2.9_20040225/extensions/libip6t_esp.c    2004-03-03 23:55:04.979203888 +0100
28 @@ -8,6 +8,8 @@
29  #include <ip6tables.h>
30  #include <linux/netfilter_ipv6/ip6t_esp.h>
31  
32 +#include <asm-generic/errno-base.h>
33 +
34  /* Function which prints out usage message. */
35  static void
36  help(void)
37 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/extensions/libip6t_frag.c iptables-1.2.9_20040225/extensions/libip6t_frag.c
38 --- iptables-1.2.9_20040225.org/extensions/libip6t_frag.c       2003-09-05 14:53:44.000000000 +0200
39 +++ iptables-1.2.9_20040225/extensions/libip6t_frag.c   2004-03-03 23:56:40.792638032 +0100
40 @@ -7,6 +7,8 @@
41  #include <errno.h>
42  #include <ip6tables.h>
43  #include <linux/netfilter_ipv6/ip6t_frag.h>
44 +
45 +#include <asm-generic/errno-base.h>
46                                          
47  /* Function which prints out usage message. */
48  static void
49 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/extensions/libip6t_hbh.c iptables-1.2.9_20040225/extensions/libip6t_hbh.c
50 --- iptables-1.2.9_20040225.org/extensions/libip6t_hbh.c        2002-06-14 09:38:16.000000000 +0200
51 +++ iptables-1.2.9_20040225/extensions/libip6t_hbh.c    2004-03-04 00:01:41.606907312 +0100
52 @@ -11,6 +11,8 @@
53  #include <sys/types.h>
54  #include <sys/socket.h>
55  #include <arpa/inet.h>
56 +
57 +#include <asm-generic/errno-base.h>
58                                          
59  #define DEBUG          0
60  #define HOPBYHOP       1
61 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/extensions/libip6t_rt.c iptables-1.2.9_20040225/extensions/libip6t_rt.c
62 --- iptables-1.2.9_20040225.org/extensions/libip6t_rt.c 2002-06-14 09:38:16.000000000 +0200
63 +++ iptables-1.2.9_20040225/extensions/libip6t_rt.c     2004-03-04 00:02:55.364694424 +0100
64 @@ -11,6 +11,8 @@
65  #include <sys/types.h>
66  #include <sys/socket.h>
67  #include <arpa/inet.h>
68 +
69 +#include <asm-generic/errno-base.h>
70                                          
71  /*#define DEBUG        1*/
72  
73 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/extensions/libipt_ah.c iptables-1.2.9_20040225/extensions/libipt_ah.c
74 --- iptables-1.2.9_20040225.org/extensions/libipt_ah.c  2002-05-29 15:08:16.000000000 +0200
75 +++ iptables-1.2.9_20040225/extensions/libipt_ah.c      2004-03-03 23:52:29.958770576 +0100
76 @@ -8,6 +8,8 @@
77  #include <iptables.h>
78  #include <linux/netfilter_ipv4/ipt_ah.h>
79                                          
80 +#include <asm-generic/errno-base.h>
81 +
82  /* Function which prints out usage message. */
83  static void
84  help(void)
85 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/extensions/libipt_esp.c iptables-1.2.9_20040225/extensions/libipt_esp.c
86 --- iptables-1.2.9_20040225.org/extensions/libipt_esp.c 2002-05-29 15:08:16.000000000 +0200
87 +++ iptables-1.2.9_20040225/extensions/libipt_esp.c     2004-03-03 23:53:56.869558128 +0100
88 @@ -8,6 +8,8 @@
89  #include <iptables.h>
90  #include <linux/netfilter_ipv4/ipt_esp.h>
91  
92 +#include <asm-generic/errno-base.h>
93 +
94  /* Function which prints out usage message. */
95  static void
96  help(void)
97 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/include/libiptc/libip6tc.h iptables-1.2.9_20040225/include/libiptc/libip6tc.h
98 --- iptables-1.2.9_20040225.org/include/libiptc/libip6tc.h      2004-03-03 23:51:40.175338808 +0100
99 +++ iptables-1.2.9_20040225/include/libiptc/libip6tc.h  2004-03-03 23:53:09.820710640 +0100
100 @@ -2,7 +2,7 @@
101  #define _LIBIP6TC_H
102  /* Library which manipulates firewall rules. Version 0.2. */
103  
104 -#include <iptables/libiptc/ipt_kernel_headers.h>
105 +#include <libiptc/ipt_kernel_headers.h>
106  #include <linux/netfilter_ipv6/ip6_tables.h>
107  
108  #ifndef IP6T_MIN_ALIGN
109 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/include/libiptc/libiptc.h iptables-1.2.9_20040225/include/libiptc/libiptc.h
110 --- iptables-1.2.9_20040225.org/include/libiptc/libiptc.h       2004-03-03 23:51:40.175338808 +0100
111 +++ iptables-1.2.9_20040225/include/libiptc/libiptc.h   2004-03-03 23:53:15.680819768 +0100
112 @@ -2,7 +2,7 @@
113  #define _LIBIPTC_H
114  /* Library which manipulates filtering rules. */
115  
116 -#include <iptables/libiptc/ipt_kernel_headers.h>
117 +#include <libiptc/ipt_kernel_headers.h>
118  #include <linux/netfilter_ipv4/ip_tables.h>
119  
120  #ifdef __cplusplus
121 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/ip6tables.c iptables-1.2.9_20040225/ip6tables.c
122 --- iptables-1.2.9_20040225.org/ip6tables.c     2004-02-02 21:02:10.000000000 +0100
123 +++ iptables-1.2.9_20040225/ip6tables.c 2004-03-04 00:09:23.339713256 +0100
124 @@ -43,6 +43,8 @@
125  #include <sys/types.h>
126  #include <sys/socket.h>
127  
128 +#include <asm-generic/errno-base.h>
129 +
130  #ifndef TRUE
131  #define TRUE 1
132  #endif
133 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/iptables.c iptables-1.2.9_20040225/iptables.c
134 --- iptables-1.2.9_20040225.org/iptables.c      2004-02-21 10:20:34.000000000 +0100
135 +++ iptables-1.2.9_20040225/iptables.c  2004-03-04 00:03:33.086959768 +0100
136 @@ -40,6 +40,8 @@
137  #include <fcntl.h>
138  #include <sys/wait.h>
139  
140 +#include <asm-generic/errno-base.h>
141 +
142  #ifndef TRUE
143  #define TRUE 1
144  #endif
145 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/libipq/libipq.c iptables-1.2.9_20040225/libipq/libipq.c
146 --- iptables-1.2.9_20040225.org/libipq/libipq.c 2003-11-14 20:17:45.000000000 +0100
147 +++ iptables-1.2.9_20040225/libipq/libipq.c     2004-03-04 00:09:54.979903216 +0100
148 @@ -33,6 +33,8 @@
149  
150  #include <libipq/libipq.h>
151  
152 +#include <asm-generic/errno.h>
153 +
154  /****************************************************************************
155   *
156   * Private interface
157 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/libiptc/libip4tc.c iptables-1.2.9_20040225/libiptc/libip4tc.c
158 --- iptables-1.2.9_20040225.org/libiptc/libip4tc.c      2003-10-07 20:55:13.000000000 +0200
159 +++ iptables-1.2.9_20040225/libiptc/libip4tc.c  2004-03-04 00:04:53.702704312 +0100
160 @@ -18,6 +18,8 @@
161  #include <stdio.h>
162  #include <unistd.h>
163  
164 +#include <asm-generic/errno-base.h>
165 +
166  #ifdef DEBUG_CONNTRACK
167  #define inline
168  #endif
169 diff -Nur --exclude '*.d' iptables-1.2.9_20040225.org/libiptc/libiptc.c iptables-1.2.9_20040225/libiptc/libiptc.c
170 --- iptables-1.2.9_20040225.org/libiptc/libiptc.c       2004-01-31 16:33:55.000000000 +0100
171 +++ iptables-1.2.9_20040225/libiptc/libiptc.c   2004-03-04 00:08:49.373876848 +0100
172 @@ -20,6 +20,9 @@
173   *       up after a ruleset change.  
174   */
175  
176 +#include <asm-generic/errno-base.h>
177 +#include <asm-generic/errno.h>
178 +
179  #ifndef IPT_LIB_DIR
180  #define IPT_LIB_DIR "/usr/local/lib/iptables"
181  #endif
This page took 0.055305 seconds and 3 git commands to generate.