]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/uapi/linux/netfilter/xt_multiport.h
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _XT_MULTIPORT_H
3 #define _XT_MULTIPORT_H
5 #include <linux/types.h>
7 enum xt_multiport_flags
{
9 XT_MULTIPORT_DESTINATION
,
13 #define XT_MULTI_PORTS 15
15 /* Must fit inside union xt_matchinfo: 16 bytes */
17 __u8 flags
; /* Type of comparison */
18 __u8 count
; /* Number of ports */
19 __u16 ports
[XT_MULTI_PORTS
]; /* Ports */
22 struct 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 */
30 #endif /*_XT_MULTIPORT_H*/