aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mip6.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/mip6.h')
-rw-r--r--include/net/mip6.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/net/mip6.h b/include/net/mip6.h
index 42b65bace122..fd43178faace 100644
--- a/include/net/mip6.h
+++ b/include/net/mip6.h
@@ -28,6 +28,29 @@
28#define MIP6_OPT_PAD_1 0 28#define MIP6_OPT_PAD_1 0
29#define MIP6_OPT_PAD_N 1 29#define MIP6_OPT_PAD_N 1
30 30
31/*
32 * Mobility Header
33 */
34struct ip6_mh {
35 __u8 ip6mh_proto;
36 __u8 ip6mh_hdrlen;
37 __u8 ip6mh_type;
38 __u8 ip6mh_reserved;
39 __u16 ip6mh_cksum;
40 /* Followed by type specific messages */
41 __u8 data[0];
42} __attribute__ ((__packed__));
43
44#define IP6_MH_TYPE_BRR 0 /* Binding Refresh Request */
45#define IP6_MH_TYPE_HOTI 1 /* HOTI Message */
46#define IP6_MH_TYPE_COTI 2 /* COTI Message */
47#define IP6_MH_TYPE_HOT 3 /* HOT Message */
48#define IP6_MH_TYPE_COT 4 /* COT Message */
49#define IP6_MH_TYPE_BU 5 /* Binding Update */
50#define IP6_MH_TYPE_BACK 6 /* Binding ACK */
51#define IP6_MH_TYPE_BERROR 7 /* Binding Error */
52#define IP6_MH_TYPE_MAX IP6_MH_TYPE_BERROR
53
31extern int mip6_init(void); 54extern int mip6_init(void);
32extern void mip6_fini(void); 55extern void mip6_fini(void);
33 56