Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / include / linux / netfilter / xt_multiport.h
blobd49ee41837101ce431fdd8593ec4a09380e16743
1 #ifndef _XT_MULTIPORT_H
2 #define _XT_MULTIPORT_H
4 enum xt_multiport_flags
6 XT_MULTIPORT_SOURCE,
7 XT_MULTIPORT_DESTINATION,
8 XT_MULTIPORT_EITHER
9 };
11 #define XT_MULTI_PORTS 15
13 /* Must fit inside union xt_matchinfo: 16 bytes */
14 struct xt_multiport
16 u_int8_t flags; /* Type of comparison */
17 u_int8_t count; /* Number of ports */
18 u_int16_t ports[XT_MULTI_PORTS]; /* Ports */
21 struct xt_multiport_v1
23 u_int8_t flags; /* Type of comparison */
24 u_int8_t count; /* Number of ports */
25 u_int16_t ports[XT_MULTI_PORTS]; /* Ports */
26 u_int8_t pflags[XT_MULTI_PORTS]; /* Port flags */
27 u_int8_t invert; /* Invert flag */
30 #endif /*_XT_MULTIPORT_H*/