1
2
3
4
5
6
7
8
9
10
11
12 #ifndef _NET_MIP6_H
13 #define _NET_MIP6_H
14
15 #include <linux/skbuff.h>
16 #include <net/sock.h>
17
18
19
20
21 struct ip6_mh {
22 __u8 ip6mh_proto;
23 __u8 ip6mh_hdrlen;
24 __u8 ip6mh_type;
25 __u8 ip6mh_reserved;
26 __u16 ip6mh_cksum;
27
28 __u8 data[0];
29 } __packed;
30
31 #define IP6_MH_TYPE_BRR 0
32 #define IP6_MH_TYPE_HOTI 1
33 #define IP6_MH_TYPE_COTI 2
34 #define IP6_MH_TYPE_HOT 3
35 #define IP6_MH_TYPE_COT 4
36 #define IP6_MH_TYPE_BU 5
37 #define IP6_MH_TYPE_BACK 6
38 #define IP6_MH_TYPE_BERROR 7
39 #define IP6_MH_TYPE_MAX IP6_MH_TYPE_BERROR
40
41 #endif