This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
2005-04-16 22:20:36 +00:00
|
|
|
#ifndef _IPT_IPRANGE_H
|
|
|
|
#define _IPT_IPRANGE_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. */
|
2006-09-28 21:22:24 +00:00
|
|
|
__be32 min_ip, max_ip;
|
2005-04-16 22:20:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ipt_iprange_info
|
|
|
|
{
|
|
|
|
struct ipt_iprange src;
|
|
|
|
struct ipt_iprange dst;
|
|
|
|
|
|
|
|
/* Flags from above */
|
|
|
|
u_int8_t flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _IPT_IPRANGE_H */
|