Replace option sol_max_rt by inf_max_rt in reply response to information request
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 1 Jul 2014 19:38:01 +0000 (21:38 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 1 Jul 2014 19:47:14 +0000 (21:47 +0200)
src/dhcpv6.c
src/dhcpv6.h

index f0a4938788a96ca7163c2c640dba6413990086aa..30b4d2594cc3a7ebfcb5759c4daa82a28543d812 100644 (file)
@@ -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
index e8928845a532814673adc9248df54bc23fab8566..44ce1d71fdadeb0db73a35dee1cdb0ca7f389d69 100644 (file)
@@ -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 */