ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / linux / netfilter_ipv4 / ipt_iprange.h
1 #ifndef _IPT_IPRANGE_H
2 #define _IPT_IPRANGE_H
3
4 #define IPRANGE_SRC             0x01    /* Match source IP address */
5 #define IPRANGE_DST             0x02    /* Match destination IP address */
6 #define IPRANGE_SRC_INV         0x10    /* Negate the condition */
7 #define IPRANGE_DST_INV         0x20    /* Negate the condition */
8
9 struct ipt_iprange {
10         /* Inclusive: network order. */
11         u_int32_t min_ip, max_ip;
12 };
13
14 struct ipt_iprange_info
15 {
16         struct ipt_iprange src;
17         struct ipt_iprange dst;
18
19         /* Flags from above */
20         u_int8_t flags;
21 };
22
23 #endif /* _IPT_IPRANGE_H */