1 /**
2 * This file was imported from the iptables sources.
3 * Copyright (C) 1999-2008 Netfilter Core Team
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; only version 2 of the License is applicable.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
19 /* This is the userspace/kernel interface for Generic IP Chains,
20 required for libc6. */
21 #ifndef _FWCHAINS_KERNEL_HEADERS_H
22 #define _FWCHAINS_KERNEL_HEADERS_H
24 #include <limits.h>
26 #if defined(__GLIBC__) && __GLIBC__ == 2
27 #include <netinet/ip.h>
28 #include <netinet/in.h>
29 #include <netinet/ip_icmp.h>
30 #include <netinet/tcp.h>
31 #include <netinet/udp.h>
32 #include <net/if.h>
33 #include <sys/types.h>
34 #else /* libc5 */
35 #include <sys/socket.h>
36 #include <linux/ip.h>
37 #include <linux/in.h>
38 #include <linux/if.h>
39 #include <linux/icmp.h>
40 #include <linux/tcp.h>
41 #include <linux/udp.h>
42 #include <linux/types.h>
43 #include <linux/in6.h>
44 #endif
45 #endif