1 #ifndef _IPT_IPRANGE_H 2 #define _IPT_IPRANGE_H 3 4 #include <linux/types.h> 5 6 #define IPRANGE_SRC 0x01 /* Match source IP address */ 7 #define IPRANGE_DST 0x02 /* Match destination IP address */ 8 #define IPRANGE_SRC_INV 0x10 /* Negate the condition */ 9 #define IPRANGE_DST_INV 0x20 /* Negate the condition */ 10 11 struct ipt_iprange { 12 /* Inclusive: network order. */ 13 __be32 min_ip, max_ip; 14 }; 15 16 struct ipt_iprange_info 17 { 18 struct ipt_iprange src; 19 struct ipt_iprange dst; 20 21 /* Flags from above */ 22 u_int8_t flags; 23 }; 24 25 #endif /* _IPT_IPRANGE_H */ 26