Home | History | Annotate | Download | only in netfilter
      1 #ifndef _XT_IPVS_H
      2 #define _XT_IPVS_H
      3 
      4 #include <linux/types.h>
      5 
      6 enum {
      7 	XT_IPVS_IPVS_PROPERTY =	1 << 0, /* all other options imply this one */
      8 	XT_IPVS_PROTO =		1 << 1,
      9 	XT_IPVS_VADDR =		1 << 2,
     10 	XT_IPVS_VPORT =		1 << 3,
     11 	XT_IPVS_DIR =		1 << 4,
     12 	XT_IPVS_METHOD =	1 << 5,
     13 	XT_IPVS_VPORTCTL =	1 << 6,
     14 	XT_IPVS_MASK =		(1 << 7) - 1,
     15 	XT_IPVS_ONCE_MASK =	XT_IPVS_MASK & ~XT_IPVS_IPVS_PROPERTY
     16 };
     17 
     18 struct xt_ipvs_mtinfo {
     19 	union nf_inet_addr	vaddr, vmask;
     20 	__be16			vport;
     21 	__u8			l4proto;
     22 	__u8			fwd_method;
     23 	__be16			vportctl;
     24 
     25 	__u8			invert;
     26 	__u8			bitmask;
     27 };
     28 
     29 #endif /* _XT_IPVS_H */
     30