aboutsummaryrefslogtreecommitdiff
path: root/dhcp6.h
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2005-12-11 06:10:10 +0000
committerSUZUKI, Shinsuke <suz@kame.net>2005-12-11 06:10:10 +0000
commit013e805485be9c41cf89aeaba8b30a3403287de9 (patch)
treec7bcac36159477588c140290b88065da082b4dcb /dhcp6.h
parentc6b9e62f830f310df612af664c07fb63efddb39c (diff)
* Assign an official option number for Information Refresh Timer
* Removed old prefix delegation options, since these options numbers coinsides with Information Refresh Timer.
Diffstat (limited to 'dhcp6.h')
-rw-r--r--dhcp6.h26
1 files changed, 4 insertions, 22 deletions
diff --git a/dhcp6.h b/dhcp6.h
index 54b34c4..1c4a492 100644
--- a/dhcp6.h
+++ b/dhcp6.h
@@ -286,25 +286,16 @@ struct dhcp6_relay {
#ifndef DH6OPT_IA_PD_PREFIX
#define DH6OPT_IA_PD_PREFIX 26
#endif
-
-/*
- * The old prefix delegation option used in the service specification document
- * (200206xx version) by NTT Communications.
- */
-#define DH6OPT_PREFIX_DELEGATION CONF_DH6OPT_PREFIX_DELEGATION
-#define DH6OPT_PREFIX_INFORMATION CONF_DH6OPT_PREFIX_INFORMATION
-#define DH6OPT_PREFIX_REQUEST CONF_DH6OPT_PREFIX_REQUEST
+#ifndef DH6OPT_REFRESHTIME
+#define DH6OPT_REFRESHTIME 32
+ #define DH6OPT_REFRESHTIME_UNDEF -1
+#endif
/* The followings are KAME specific. */
#if CONF_DH6OPT_NTP > 0
#define USE_DH6OPT_NTP
#endif
#define DH6OPT_NTP CONF_DH6OPT_NTP
-#if CONF_DH6OPT_REFRESHTIME > 0
-#define USE_DH6OPT_REFRESHTIME
-#endif
-#define DH6OPT_REFRESHTIME CONF_DH6OPT_REFRESHTIME
-# define DH6OPT_REFRESHTIME_UNDEF -1
struct dhcp6opt {
u_int16_t dh6opt_type;
@@ -327,15 +318,6 @@ struct dhcp6opt_stcode {
u_int16_t dh6_stcode_code;
} __attribute__ ((__packed__));
-/* Prefix Information */
-struct dhcp6opt_prefix_info {
- u_int16_t dh6_pi_type;
- u_int16_t dh6_pi_len;
- u_int32_t dh6_pi_duration;
- u_int8_t dh6_pi_plen;
- struct in6_addr dh6_pi_paddr;
-} __attribute__ ((__packed__));
-
/*
* General format of Identity Association.
* This format applies to Prefix Delegation (IA_PD) and Non-temporary Addresses