blob: 79f9a477c5ac761bc383653ecd7d463d09b0c58e [file] [log] [blame]
Christopher Ferris25981132017-11-14 16:53:49 -08001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Ben Cheng30692c62013-10-15 18:26:18 -07002#ifndef _IP6T_OPTS_H
3#define _IP6T_OPTS_H
4
5#include <linux/types.h>
6
7#define IP6T_OPTS_OPTSNR 16
8
9struct ip6t_opts {
10 __u32 hdrlen; /* Header Length */
11 __u8 flags; /* */
12 __u8 invflags; /* Inverse flags */
13 __u16 opts[IP6T_OPTS_OPTSNR]; /* opts */
14 __u8 optsnr; /* Nr of OPts */
15};
16
17#define IP6T_OPTS_LEN 0x01
18#define IP6T_OPTS_OPTS 0x02
19#define IP6T_OPTS_NSTRICT 0x04
20
21/* Values for "invflags" field in struct ip6t_rt. */
22#define IP6T_OPTS_INV_LEN 0x01 /* Invert the sense of length. */
23#define IP6T_OPTS_INV_MASK 0x01 /* All possible flags. */
24
25#endif /*_IP6T_OPTS_H*/