blob: 25fd7cf851f016805378560b37a57cb350b310f7 [file] [log] [blame]
Jan Engelhardtf72e25a2008-01-14 23:42:47 -08001#ifndef _LINUX_NETFILTER_XT_IPRANGE_H
2#define _LINUX_NETFILTER_XT_IPRANGE_H 1
3
Arnd Bergmann60c195c2009-02-26 00:51:43 +01004#include <linux/types.h>
Ben Hutchings5740bb52011-08-24 18:45:42 +00005#include <linux/netfilter.h>
Arnd Bergmann60c195c2009-02-26 00:51:43 +01006
Jan Engelhardtf72e25a2008-01-14 23:42:47 -08007enum {
8 IPRANGE_SRC = 1 << 0, /* match source IP address */
9 IPRANGE_DST = 1 << 1, /* match destination IP address */
10 IPRANGE_SRC_INV = 1 << 4, /* negate the condition */
11 IPRANGE_DST_INV = 1 << 5, /* -"- */
12};
13
14struct xt_iprange_mtinfo {
15 union nf_inet_addr src_min, src_max;
16 union nf_inet_addr dst_min, dst_max;
Arnd Bergmann60c195c2009-02-26 00:51:43 +010017 __u8 flags;
Jan Engelhardtf72e25a2008-01-14 23:42:47 -080018};
19
20#endif /* _LINUX_NETFILTER_XT_IPRANGE_H */