2006-04-01 10:22:54 +00:00
|
|
|
#ifndef _XT_MULTIPORT_H
|
|
|
|
#define _XT_MULTIPORT_H
|
|
|
|
|
2009-02-25 23:51:43 +00:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2009-11-04 17:50:58 +00:00
|
|
|
enum xt_multiport_flags {
|
2006-04-01 10:22:54 +00:00
|
|
|
XT_MULTIPORT_SOURCE,
|
|
|
|
XT_MULTIPORT_DESTINATION,
|
|
|
|
XT_MULTIPORT_EITHER
|
|
|
|
};
|
|
|
|
|
|
|
|
#define XT_MULTI_PORTS 15
|
|
|
|
|
|
|
|
/* Must fit inside union xt_matchinfo: 16 bytes */
|
2009-11-04 17:50:58 +00:00
|
|
|
struct xt_multiport {
|
2009-02-25 23:51:43 +00:00
|
|
|
__u8 flags; /* Type of comparison */
|
|
|
|
__u8 count; /* Number of ports */
|
|
|
|
__u16 ports[XT_MULTI_PORTS]; /* Ports */
|
2006-04-01 10:22:54 +00:00
|
|
|
};
|
|
|
|
|
2009-11-04 17:50:58 +00:00
|
|
|
struct xt_multiport_v1 {
|
2009-02-25 23:51:43 +00:00
|
|
|
__u8 flags; /* Type of comparison */
|
|
|
|
__u8 count; /* Number of ports */
|
|
|
|
__u16 ports[XT_MULTI_PORTS]; /* Ports */
|
|
|
|
__u8 pflags[XT_MULTI_PORTS]; /* Port flags */
|
|
|
|
__u8 invert; /* Invert flag */
|
2006-04-01 10:22:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /*_XT_MULTIPORT_H*/
|