diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-08-04 12:47:48 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-08-04 12:47:48 +0200 |
commit | ef18e8147903885708d1c264904129af4fb636d6 (patch) | |
tree | 66859f8b391ba7b4be375d6f54195ad3e4a5e789 /include/xtables.h.in | |
parent | d9842a6d4650ebf11248c0681ff136771bc7aa14 (diff) |
src: remove dependency on libiptc headers
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>
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r-- | include/xtables.h.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index 4ce73e97..51cb67dc 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -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 @@ -22,12 +23,14 @@ #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; |