Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _IP6T_OPTS_H |
| 2 | #define _IP6T_OPTS_H |
| 3 | |
| 4 | #define IP6T_OPTS_OPTSNR 16 |
| 5 | |
Eric Dumazet | d94d9fe | 2009-11-04 09:50:58 -0800 | [diff] [blame] | 6 | struct ip6t_opts { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | u_int32_t hdrlen; /* Header Length */ |
| 8 | u_int8_t flags; /* */ |
| 9 | u_int8_t invflags; /* Inverse flags */ |
| 10 | u_int16_t opts[IP6T_OPTS_OPTSNR]; /* opts */ |
| 11 | u_int8_t optsnr; /* Nr of OPts */ |
| 12 | }; |
| 13 | |
| 14 | #define IP6T_OPTS_LEN 0x01 |
| 15 | #define IP6T_OPTS_OPTS 0x02 |
| 16 | #define IP6T_OPTS_NSTRICT 0x04 |
| 17 | |
| 18 | /* Values for "invflags" field in struct ip6t_rt. */ |
| 19 | #define IP6T_OPTS_INV_LEN 0x01 /* Invert the sense of length. */ |
| 20 | #define IP6T_OPTS_INV_MASK 0x01 /* All possible flags. */ |
| 21 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #endif /*_IP6T_OPTS_H*/ |