#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
* Error corections by nmalykh@bilim.com (22.01.2005)
*/
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <getopt.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
+#include <linux/ip.h>
struct tos_value_mask {
uint8_t value, mask;
#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
#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)
#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"
#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;
{
struct xtables_target *next;
- xt_chainlabel name;
+ const char *name;
/* Revision of target (0 by default). */
u_int8_t revision;
#include <arpa/inet.h>
#include <xtables.h>
+#include <libiptc/libxtc.h>
#ifndef NO_SHARED_LIBS
#include <dlfcn.h>