OSDN Git Service

original
[gb-231r1-is01/GB_2.3_IS01.git] / prebuilt / linux-x86 / toolchain / i686-linux-glibc2.7-4.4.3 / sysroot / usr / include / linux / netfilter_ipv4 / ipt_iprange.h
diff --git a/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/netfilter_ipv4/ipt_iprange.h b/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/netfilter_ipv4/ipt_iprange.h
new file mode 100644 (file)
index 0000000..a92fefc
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef _IPT_IPRANGE_H
+#define _IPT_IPRANGE_H
+
+#include <linux/types.h>
+
+#define IPRANGE_SRC            0x01    /* Match source IP address */
+#define IPRANGE_DST            0x02    /* Match destination IP address */
+#define IPRANGE_SRC_INV                0x10    /* Negate the condition */
+#define IPRANGE_DST_INV                0x20    /* Negate the condition */
+
+struct ipt_iprange {
+       /* Inclusive: network order. */
+       __be32 min_ip, max_ip;
+};
+
+struct ipt_iprange_info
+{
+       struct ipt_iprange src;
+       struct ipt_iprange dst;
+
+       /* Flags from above */
+       u_int8_t flags;
+};
+
+#endif /* _IPT_IPRANGE_H */