summaryrefslogtreecommitdiff
path: root/include/libiptc/ipt_kernel_headers.h
diff options
context:
space:
mode:
authorHyungKyu Song <hk76.song@samsung.com>2013-02-16 00:06:47 +0900
committerHyungKyu Song <hk76.song@samsung.com>2013-02-16 00:06:47 +0900
commitebceb903d97f38aa6f4110c455367492c8b94f6c (patch)
tree5d21c5f26a156067e733c9faa79782ecc26196e9 /include/libiptc/ipt_kernel_headers.h
parentdbc5ef4889caa206f4d47d83345357780ceef73e (diff)
downloadiptables-ebceb903d97f38aa6f4110c455367492c8b94f6c.tar.gz
iptables-ebceb903d97f38aa6f4110c455367492c8b94f6c.tar.bz2
iptables-ebceb903d97f38aa6f4110c455367492c8b94f6c.zip
Diffstat (limited to 'include/libiptc/ipt_kernel_headers.h')
-rw-r--r--include/libiptc/ipt_kernel_headers.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/libiptc/ipt_kernel_headers.h b/include/libiptc/ipt_kernel_headers.h
new file mode 100644
index 0000000..18861fe
--- /dev/null
+++ b/include/libiptc/ipt_kernel_headers.h
@@ -0,0 +1,27 @@
+/* This is the userspace/kernel interface for Generic IP Chains,
+ required for libc6. */
+#ifndef _FWCHAINS_KERNEL_HEADERS_H
+#define _FWCHAINS_KERNEL_HEADERS_H
+
+#include <limits.h>
+
+#if defined(__GLIBC__) && __GLIBC__ == 2
+#include <netinet/ip.h>
+#include <netinet/in.h>
+#include <netinet/ip_icmp.h>
+#include <netinet/tcp.h>
+#include <netinet/udp.h>
+#include <net/if.h>
+#include <sys/types.h>
+#else /* libc5 */
+#include <sys/socket.h>
+#include <linux/ip.h>
+#include <linux/in.h>
+#include <linux/if.h>
+#include <linux/icmp.h>
+#include <linux/tcp.h>
+#include <linux/udp.h>
+#include <linux/types.h>
+#include <linux/in6.h>
+#endif
+#endif