]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
src: remove dependency on libiptc headers
authorJan Engelhardt <jengelh@medozas.de>
Mon, 4 Aug 2008 10:47:48 +0000 (12:47 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Aug 2008 10:47:48 +0000 (12:47 +0200)
xtables.h does not need really need libxtc.h, and we can drop it from
the install as it is internal-only.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/libxt_TCPOPTSTRIP.c
extensions/libxt_hashlimit.c
extensions/libxt_time.c
extensions/tos_values.c
include/ip6tables.h
include/iptables.h
include/libiptc/libxtc.h
include/xtables.h.in
xtables.c

index bd74e379a7f6a8d4f58010afe3f9a1f613e3d414..a00c82b7c30e9851acd541dbe304db2b5242b0e1 100644 (file)
@@ -10,6 +10,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <xtables.h>
+#include <netinet/tcp.h>
 #include <linux/netfilter/x_tables.h>
 #include <linux/netfilter/xt_TCPOPTSTRIP.h>
 #ifndef TCPOPT_MD5SIG
index 2f6b3fcdc50e985f42ea54d4471b92c766450f71..1f34fb98184965cde16aba2d12ca7731b4d1cbcf 100644 (file)
@@ -11,6 +11,7 @@
  * Error corections by nmalykh@bilim.com (22.01.2005)
  */
 #include <stdbool.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
index 97bb0d31e6863ae5593fa59ee36ed2c7ee02b841..f2bb51fd9277efd3396ccf8c1d3f1f03c1fc9962 100644 (file)
@@ -12,6 +12,7 @@
 #include <sys/types.h>
 #include <getopt.h>
 #include <stdbool.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
index 4c0b0bcb1ebd521855ad1c8018e524bd5bfab03c..0ab784da3103084e05744a28ff69cd9cec1718d3 100644 (file)
@@ -1,6 +1,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <linux/ip.h>
 
 struct tos_value_mask {
        uint8_t value, mask;
index 077fee926952a021ef4ff4e0a0975e78b7e381de..dfbc9b2f198470899fa79a0e127ea65f116c43a1 100644 (file)
@@ -1,9 +1,9 @@
 #ifndef _IP6TABLES_USER_H
 #define _IP6TABLES_USER_H
 
+#include <netinet/ip.h>
 #include <xtables.h>
-
-#include "libiptc/libip6tc.h"
+#include <libiptc/libip6tc.h>
 
 #ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */
 #define IP6T_SO_GET_REVISION_MATCH     68
index ecc7168fdd3ed02c3df85cc2c9f94a44b1a6ddd1..99e8e1e1c1fe78ac67fc72fe69ad247f84d1880f 100644 (file)
@@ -1,8 +1,9 @@
 #ifndef _IPTABLES_USER_H
 #define _IPTABLES_USER_H
 
-#include "xtables.h"
-#include "libiptc/libiptc.h"
+#include <netinet/ip.h>
+#include <xtables.h>
+#include <libiptc/libiptc.h>
 
 #ifndef IPT_SO_GET_REVISION_MATCH /* Old kernel source. */
 #define IPT_SO_GET_REVISION_MATCH      (IPT_BASE_CTL + 2)
index 031afb5468e341d824784416396567814abe7df1..37010188b64fdcf30a2e4d1f240d88b3e8925b90 100644 (file)
@@ -20,8 +20,6 @@ extern "C" {
 #define XT_ALIGN(s) (((s) + ((XT_MIN_ALIGN)-1)) & ~((XT_MIN_ALIGN)-1))
 #endif
 
-typedef char xt_chainlabel[32];
-
 #define XTC_LABEL_ACCEPT  "ACCEPT"
 #define XTC_LABEL_DROP    "DROP"
 #define XTC_LABEL_QUEUE   "QUEUE"
index 4ce73e979881e8935d8e5d875c164229d5d1b4fa..51cb67dcb199f445aee856545aacd3349c56450f 100644 (file)
@@ -1,11 +1,12 @@
 #ifndef _XTABLES_H
 #define _XTABLES_H
 
+#include <sys/socket.h> /* PF_* */
 #include <sys/types.h>
+#include <stdbool.h>
+#include <net/if.h>
 #include <linux/types.h>
 #include <linux/netfilter/x_tables.h>
-#include <libiptc/libxtc.h>
-#include <stdbool.h>
 
 #ifndef IPPROTO_SCTP
 #define IPPROTO_SCTP 132
 
 #define XTABLES_API_VERSION(x,y,z)    (0x10000*(x) + 0x100*(y) + z)
 
+struct in_addr;
+
 /* Include file for additions: new matches and targets. */
 struct xtables_match
 {
        struct xtables_match *next;
 
-       xt_chainlabel name;
+       const char *name;
 
        /* Revision of match (0 by default). */
        u_int8_t revision;
@@ -83,7 +86,7 @@ struct xtables_target
 {
        struct xtables_target *next;
 
-       xt_chainlabel name;
+       const char *name;
 
        /* Revision of target (0 by default). */
        u_int8_t revision;
index a97bdaad47cda1bc32be2b3c8d28c6ea1d0c6625..abdd283b2773c90a73fddb3a0aba5c67cacff6d0 100644 (file)
--- a/xtables.c
+++ b/xtables.c
@@ -32,6 +32,7 @@
 #include <arpa/inet.h>
 
 #include <xtables.h>
+#include <libiptc/libxtc.h>
 
 #ifndef NO_SHARED_LIBS
 #include <dlfcn.h>