From df3dac62087211a1d4b2827897d80270ba51e413 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 1 Jul 2014 21:38:01 +0200 Subject: [PATCH] Replace option sol_max_rt by inf_max_rt in reply response to information request --- src/dhcpv6.c | 3 +++ src/dhcpv6.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/dhcpv6.c b/src/dhcpv6.c index f0a4938..30b4d25 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -302,6 +302,9 @@ static void handle_client_request(void *addr, void *data, size_t len, } else if (opts[-4] == DHCPV6_MSG_INFORMATION_REQUEST) { iov[IOV_REFRESH].iov_base = &refresh; iov[IOV_REFRESH].iov_len = sizeof(refresh); + + // Return inf max rt option in reply to information request + maxrt.type = htons(DHCPV6_OPT_INF_MAX_RT); } // Go through options and find what we need diff --git a/src/dhcpv6.h b/src/dhcpv6.h index e892884..44ce1d7 100644 --- a/src/dhcpv6.h +++ b/src/dhcpv6.h @@ -57,6 +57,7 @@ #define DHCPV6_OPT_INFO_REFRESH 32 #define DHCPV6_OPT_FQDN 39 #define DHCPV6_OPT_SOL_MAX_RT 82 +#define DHCPV6_OPT_INF_MAX_RT 83 #ifdef EXT_PREFIX_CLASS /* draft-bhandari-dhc-class-based-prefix, not yet standardized */ -- 2.30.2