1 #ifndef _IP6T_AH_H
2 #define _IP6T_AH_H
3 
4 struct ip6t_ah
5 {
6 	u_int32_t spis[2];			/* Security Parameter Index */
7 	u_int32_t hdrlen;			/* Header Length */
8 	u_int8_t  hdrres;			/* Test of the Reserved Filed */
9 	u_int8_t  invflags;			/* Inverse flags */
10 };
11 
12 #define IP6T_AH_SPI 0x01
13 #define IP6T_AH_LEN 0x02
14 #define IP6T_AH_RES 0x04
15 
16 /* Values for "invflags" field in struct ip6t_ah. */
17 #define IP6T_AH_INV_SPI		0x01	/* Invert the sense of spi. */
18 #define IP6T_AH_INV_LEN		0x02	/* Invert the sense of length. */
19 #define IP6T_AH_INV_MASK	0x03	/* All possible flags. */
20 
21 #define MASK_HOPOPTS    128
22 #define MASK_DSTOPTS    64
23 #define MASK_ROUTING    32
24 #define MASK_FRAGMENT   16
25 #define MASK_AH         8
26 #define MASK_ESP        4
27 #define MASK_NONE       2
28 #define MASK_PROTO      1
29 
30 #endif /*_IP6T_AH_H*/
31