Jan Engelhardt | f72e25a | 2008-01-14 23:42:47 -0800 | [diff] [blame] | 1 | #ifndef _LINUX_NETFILTER_XT_IPRANGE_H |
| 2 | #define _LINUX_NETFILTER_XT_IPRANGE_H 1 |
| 3 | |
Arnd Bergmann | 60c195c | 2009-02-26 00:51:43 +0100 | [diff] [blame] | 4 | #include <linux/types.h> |
| 5 | |
Jan Engelhardt | f72e25a | 2008-01-14 23:42:47 -0800 | [diff] [blame] | 6 | enum { |
| 7 | IPRANGE_SRC = 1 << 0, /* match source IP address */ |
| 8 | IPRANGE_DST = 1 << 1, /* match destination IP address */ |
| 9 | IPRANGE_SRC_INV = 1 << 4, /* negate the condition */ |
| 10 | IPRANGE_DST_INV = 1 << 5, /* -"- */ |
| 11 | }; |
| 12 | |
| 13 | struct xt_iprange_mtinfo { |
| 14 | union nf_inet_addr src_min, src_max; |
| 15 | union nf_inet_addr dst_min, dst_max; |
Arnd Bergmann | 60c195c | 2009-02-26 00:51:43 +0100 | [diff] [blame] | 16 | __u8 flags; |
Jan Engelhardt | f72e25a | 2008-01-14 23:42:47 -0800 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | #endif /* _LINUX_NETFILTER_XT_IPRANGE_H */ |