Warning: This file is not a C or C++ file. It does not have highlighting.

1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _XT_MULTIPORT_H
3#define _XT_MULTIPORT_H
4
5#include <linux/types.h>
6
7enum xt_multiport_flags {
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 __u8 flags; /* Type of comparison */
18 __u8 count; /* Number of ports */
19 __u16 ports[XT_MULTI_PORTS]; /* Ports */
20};
21
22struct xt_multiport_v1 {
23 __u8 flags; /* Type of comparison */
24 __u8 count; /* Number of ports */
25 __u16 ports[XT_MULTI_PORTS]; /* Ports */
26 __u8 pflags[XT_MULTI_PORTS]; /* Port flags */
27 __u8 invert; /* Invert flag */
28};
29
30#endif /*_XT_MULTIPORT_H*/
31

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of linux/include/uapi/linux/netfilter/xt_multiport.h