aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipv6.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-09-04 21:04:52 +0000
committerGuy Harris <guy@alum.mit.edu>2001-09-04 21:04:52 +0000
commit4ad369eca1fa71018a87e0e981a202700e497e80 (patch)
treede855d42c272af8ee1e33af5883d11430e88bfba /packet-ipv6.h
parent0e68611e41ab688d4ec74d12bebb4409b6a55f88 (diff)
HMIPv6 support, from Martti Kuparinen.
svn path=/trunk/; revision=3907
Diffstat (limited to 'packet-ipv6.h')
-rw-r--r--packet-ipv6.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/packet-ipv6.h b/packet-ipv6.h
index 10cfefd965..eb92c5ea4c 100644
--- a/packet-ipv6.h
+++ b/packet-ipv6.h
@@ -1,7 +1,7 @@
/* packet-ipv6.h
* Definitions for IPv6 packet disassembly
*
- * $Id: packet-ipv6.h,v 1.23 2001/06/26 17:31:36 itojun Exp $
+ * $Id: packet-ipv6.h,v 1.24 2001/09/04 21:04:52 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -9,6 +9,8 @@
* Copyright 1998 Gerald Combs
*
* MobileIPv6 support added by Tomislav Borosa <tomislav.borosa@siemens.hr>
+ *
+ * HMIPv6 support added by Martti Kuparinen <martti.kuparinen@iki.fi>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -390,8 +392,13 @@ struct nd_opt_hdr { /* Neighbor discovery option header */
#define ND_OPT_MTU 5
#define ND_OPT_ADVINTERVAL 7
#define ND_OPT_HOMEAGENT_INFO 8
+#define ND_OPT_SOURCE_ADDRLIST 9
+#define ND_OPT_TARGET_ADDRLIST 10
+
/* draft-ietf-ipngwg-router-preference, not officially assigned yet */
-#define ND_OPT_ROUTE_INFO 9
+#define ND_OPT_ROUTE_INFO 200
+/* draft-ietf-mobileip-hmipv6, not officially assigned yet */
+#define ND_OPT_MAP 201
struct nd_opt_prefix_info { /* prefix information */
guint8 nd_opt_pi_type;
@@ -448,6 +455,24 @@ struct nd_opt_route_info { /* route info */
/* prefix follows */
};
+struct nd_opt_map_info { /* HMIPv6 MAP option */
+ guint8 nd_opt_map_type;
+ guint8 nd_opt_map_len;
+ guint8 nd_opt_map_distance;
+ guint8 nd_opt_map_preference;
+ guint8 nd_opt_map_prefixlen;
+ guint8 nd_opt_map_flags;
+ guint16 nd_opt_map_unused;
+ guint32 nd_opt_map_lifetime;
+ struct e_in6_addr nd_opt_map_address;
+};
+
+#define ND_OPT_MAP_FLAG_R 0x80
+#define ND_OPT_MAP_FLAG_M 0x40
+#define ND_OPT_MAP_FLAG_I 0x20
+#define ND_OPT_MAP_FLAG_T 0x10
+#define ND_OPT_MAP_FLAG_P 0x08
+
/*
* icmp6 node information
*/