mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 02:19:51 +00:00
![Adrian Bunk](/assets/img/avatar_default.png)
ipt_iprange.h must #include <linux/types.h> since it uses __be32. This patch fixes kernel Bugzilla #7604. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
25 lines
537 B
C
25 lines
537 B
C
#ifndef _IPT_IPRANGE_H
|
|
#define _IPT_IPRANGE_H
|
|
|
|
#include <linux/types.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. */
|
|
__be32 min_ip, max_ip;
|
|
};
|
|
|
|
struct ipt_iprange_info
|
|
{
|
|
struct ipt_iprange src;
|
|
struct ipt_iprange dst;
|
|
|
|
/* Flags from above */
|
|
u_int8_t flags;
|
|
};
|
|
|
|
#endif /* _IPT_IPRANGE_H */
|