summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2017-12-11 16:32:03 -0500
committerThomas Markwalder <tmark@isc.org>2017-12-11 16:32:03 -0500
commit9b348d7d482603250769f4ddfb46ea77b9976131 (patch)
tree68c97b6c1045783a0dbadf08adb27d41755c21a9 /server
parentb7b26ece652973452d4e122a44f8250974f627dd (diff)
downloadisc-dhcp-9b348d7d482603250769f4ddfb46ea77b9976131.tar.gz
[master] Fixed static v6 leases not getting written to packet
Merges in rt45292a.
Diffstat (limited to 'server')
-rw-r--r--server/dhcpv6.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/dhcpv6.c b/server/dhcpv6.c
index dec3c48a..bb613a74 100644
--- a/server/dhcpv6.c
+++ b/server/dhcpv6.c
@@ -2225,6 +2225,9 @@ reply_process_ia_na(struct reply_state *reply, struct option_cache *ia) {
reply->client_id.data, 60),
iaid);
+ /* Write the lease out in wire-format to the outbound buffer */
+ write_to_packet(reply, ia_cursor);
+
if ((reply->buf.reply.msg_type == DHCPV6_REPLY) &&
(reply->on_star.on_commit != NULL)) {
execute_statements(NULL, reply->packet, NULL, NULL,
@@ -4247,6 +4250,10 @@ reply_process_ia_pd(struct reply_state *reply, struct option_cache *ia) {
print_hex_1(reply->client_id.len,
reply->client_id.data, 60),
iaid);
+
+ /* Write the lease out in wire-format to the outbound buffer */
+ write_to_packet(reply, ia_cursor);
+
if ((reply->buf.reply.msg_type == DHCPV6_REPLY) &&
(reply->on_star.on_commit != NULL)) {
execute_statements(NULL, reply->packet, NULL, NULL,