blob: 185db499fcbc73ceddd6a4d96e61481d068f43b6 [file] [log] [blame]
Yasuyuki Kozakaia89ecb62006-04-01 02:22:54 -08001#ifndef _XT_MULTIPORT_H
2#define _XT_MULTIPORT_H
3
Arnd Bergmann60c195c2009-02-26 00:51:43 +01004#include <linux/types.h>
5
Yasuyuki Kozakaia89ecb62006-04-01 02:22:54 -08006enum xt_multiport_flags
7{
8 XT_MULTIPORT_SOURCE,
9 XT_MULTIPORT_DESTINATION,
10 XT_MULTIPORT_EITHER
11};
12
13#define XT_MULTI_PORTS 15
14
15/* Must fit inside union xt_matchinfo: 16 bytes */
16struct xt_multiport
17{
Arnd Bergmann60c195c2009-02-26 00:51:43 +010018 __u8 flags; /* Type of comparison */
19 __u8 count; /* Number of ports */
20 __u16 ports[XT_MULTI_PORTS]; /* Ports */
Yasuyuki Kozakaia89ecb62006-04-01 02:22:54 -080021};
22
23struct xt_multiport_v1
24{
Arnd Bergmann60c195c2009-02-26 00:51:43 +010025 __u8 flags; /* Type of comparison */
26 __u8 count; /* Number of ports */
27 __u16 ports[XT_MULTI_PORTS]; /* Ports */
28 __u8 pflags[XT_MULTI_PORTS]; /* Port flags */
29 __u8 invert; /* Invert flag */
Yasuyuki Kozakaia89ecb62006-04-01 02:22:54 -080030};
31
32#endif /*_XT_MULTIPORT_H*/