Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
423 | giacomo | 1 | #ifndef _IPT_MULTIPORT_H |
2 | #define _IPT_MULTIPORT_H |
||
3 | #include <linux/netfilter_ipv4/ip_tables.h> |
||
4 | |||
5 | enum ipt_multiport_flags |
||
6 | { |
||
7 | IPT_MULTIPORT_SOURCE, |
||
8 | IPT_MULTIPORT_DESTINATION, |
||
9 | IPT_MULTIPORT_EITHER |
||
10 | }; |
||
11 | |||
12 | #define IPT_MULTI_PORTS 15 |
||
13 | |||
14 | /* Must fit inside union ipt_matchinfo: 16 bytes */ |
||
15 | struct ipt_multiport |
||
16 | { |
||
17 | u_int8_t flags; /* Type of comparison */ |
||
18 | u_int8_t count; /* Number of ports */ |
||
19 | u_int16_t ports[IPT_MULTI_PORTS]; /* Ports */ |
||
20 | }; |
||
21 | #endif /*_IPT_MULTIPORT_H*/ |