Blame bootstrap_ver/include/linux/netfilter/xt_policy.h

Packit Service fa126c
#ifndef _XT_POLICY_H
Packit Service fa126c
#define _XT_POLICY_H
Packit Service fa126c
Packit Service fa126c
#include <linux/types.h>
Packit Service fa126c
Packit Service fa126c
#define XT_POLICY_MAX_ELEM	4
Packit Service fa126c
Packit Service fa126c
enum xt_policy_flags {
Packit Service fa126c
	XT_POLICY_MATCH_IN	= 0x1,
Packit Service fa126c
	XT_POLICY_MATCH_OUT	= 0x2,
Packit Service fa126c
	XT_POLICY_MATCH_NONE	= 0x4,
Packit Service fa126c
	XT_POLICY_MATCH_STRICT	= 0x8,
Packit Service fa126c
};
Packit Service fa126c
Packit Service fa126c
enum xt_policy_modes {
Packit Service fa126c
	XT_POLICY_MODE_TRANSPORT,
Packit Service fa126c
	XT_POLICY_MODE_TUNNEL
Packit Service fa126c
};
Packit Service fa126c
Packit Service fa126c
struct xt_policy_spec {
Packit Service fa126c
	__u8	saddr:1,
Packit Service fa126c
			daddr:1,
Packit Service fa126c
			proto:1,
Packit Service fa126c
			mode:1,
Packit Service fa126c
			spi:1,
Packit Service fa126c
			reqid:1;
Packit Service fa126c
};
Packit Service fa126c
Packit Service fa126c
union xt_policy_addr {
Packit Service fa126c
	struct in_addr	a4;
Packit Service fa126c
	struct in6_addr	a6;
Packit Service fa126c
};
Packit Service fa126c
Packit Service fa126c
struct xt_policy_elem {
Packit Service fa126c
	union {
Packit Service fa126c
		struct {
Packit Service fa126c
			union xt_policy_addr saddr;
Packit Service fa126c
			union xt_policy_addr smask;
Packit Service fa126c
			union xt_policy_addr daddr;
Packit Service fa126c
			union xt_policy_addr dmask;
Packit Service fa126c
		};
Packit Service fa126c
	};
Packit Service fa126c
	__be32			spi;
Packit Service fa126c
	__u32		reqid;
Packit Service fa126c
	__u8		proto;
Packit Service fa126c
	__u8		mode;
Packit Service fa126c
Packit Service fa126c
	struct xt_policy_spec	match;
Packit Service fa126c
	struct xt_policy_spec	invert;
Packit Service fa126c
};
Packit Service fa126c
Packit Service fa126c
struct xt_policy_info {
Packit Service fa126c
	struct xt_policy_elem pol[XT_POLICY_MAX_ELEM];
Packit Service fa126c
	__u16 flags;
Packit Service fa126c
	__u16 len;
Packit Service fa126c
};
Packit Service fa126c
Packit Service fa126c
#endif /* _XT_POLICY_H */