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 | |
| 6 | struct ip6t_opts |
| 7 | { |
| 8 | u_int32_t hdrlen; /* Header Length */ |
| 9 | u_int8_t flags; /* */ |
| 10 | u_int8_t invflags; /* Inverse flags */ |
| 11 | u_int16_t opts[IP6T_OPTS_OPTSNR]; /* opts */ |
| 12 | u_int8_t optsnr; /* Nr of OPts */ |
| 13 | }; |
| 14 | |
| 15 | #define IP6T_OPTS_LEN 0x01 |
| 16 | #define IP6T_OPTS_OPTS 0x02 |
| 17 | #define IP6T_OPTS_NSTRICT 0x04 |
| 18 | |
| 19 | /* Values for "invflags" field in struct ip6t_rt. */ |
| 20 | #define IP6T_OPTS_INV_LEN 0x01 /* Invert the sense of length. */ |
| 21 | #define IP6T_OPTS_INV_MASK 0x01 /* All possible flags. */ |
| 22 | |
| 23 | #define MASK_HOPOPTS 128 |
| 24 | #define MASK_DSTOPTS 64 |
| 25 | #define MASK_ROUTING 32 |
| 26 | #define MASK_FRAGMENT 16 |
| 27 | #define MASK_AH 8 |
| 28 | #define MASK_ESP 4 |
| 29 | #define MASK_NONE 2 |
| 30 | #define MASK_PROTO 1 |
| 31 | |
| 32 | #endif /*_IP6T_OPTS_H*/ |