Christopher Ferris | 2598113 | 2017-11-14 16:53:49 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 2 | #ifndef _IP6T_OPTS_H |
| 3 | #define _IP6T_OPTS_H |
| 4 | |
| 5 | #include <linux/types.h> |
| 6 | |
| 7 | #define IP6T_OPTS_OPTSNR 16 |
| 8 | |
| 9 | struct 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*/ |