|
|
54343e |
diff -up dhcp-4.2.5/client/dhc6.c.prepend dhcp-4.2.5/client/dhc6.c
|
|
|
54343e |
--- dhcp-4.2.5/client/dhc6.c.prepend 2016-04-18 14:21:41.062502036 +0200
|
|
|
54343e |
+++ dhcp-4.2.5/client/dhc6.c 2016-04-18 14:25:11.683732506 +0200
|
|
|
54343e |
@@ -595,7 +595,7 @@ dhc6_dup_addr(struct dhc6_addr *addr, co
|
|
|
54343e |
* Parsed options are deleted in order to not save them in the lease file.
|
|
|
54343e |
*/
|
|
|
54343e |
static struct dhc6_lease *
|
|
|
54343e |
-dhc6_leaseify(struct packet *packet)
|
|
|
54343e |
+dhc6_leaseify(struct packet *packet, struct client_state* client)
|
|
|
54343e |
{
|
|
|
54343e |
struct data_string ds;
|
|
|
54343e |
struct dhc6_lease *lease;
|
|
|
54343e |
@@ -687,6 +687,11 @@ dhc6_leaseify(struct packet *packet)
|
|
|
54343e |
lease->server_id.data, 52));
|
|
|
54343e |
}
|
|
|
54343e |
|
|
|
54343e |
+ execute_statements_in_scope(NULL, (struct packet *)packet, NULL,
|
|
|
54343e |
+ client, lease->options, lease->options,
|
|
|
54343e |
+ &global_scope, client->config->on_receipt,
|
|
|
54343e |
+ NULL);
|
|
|
54343e |
+
|
|
|
54343e |
return lease;
|
|
|
54343e |
}
|
|
|
54343e |
|
|
|
54343e |
@@ -2892,7 +2897,7 @@ init_handler(struct packet *packet, stru
|
|
|
54343e |
return;
|
|
|
54343e |
}
|
|
|
54343e |
|
|
|
54343e |
- lease = dhc6_leaseify(packet);
|
|
|
54343e |
+ lease = dhc6_leaseify(packet, client);
|
|
|
54343e |
|
|
|
54343e |
if (dhc6_check_advertise(lease) != ISC_R_SUCCESS) {
|
|
|
54343e |
log_debug("PRC: Lease failed to satisfy.");
|
|
|
54343e |
@@ -2975,6 +2980,12 @@ info_request_handler(struct packet *pack
|
|
|
54343e |
option_state_reference(&client->active_lease->options,
|
|
|
54343e |
packet->options, MDL);
|
|
|
54343e |
|
|
|
54343e |
+ execute_statements_in_scope(NULL, (struct packet *)packet, NULL, client,
|
|
|
54343e |
+ client->active_lease->options,
|
|
|
54343e |
+ client->active_lease->options,
|
|
|
54343e |
+ &global_scope, client->config->on_receipt,
|
|
|
54343e |
+ NULL);
|
|
|
54343e |
+
|
|
|
54343e |
start_informed(client);
|
|
|
54343e |
}
|
|
|
54343e |
|
|
|
54343e |
@@ -3009,7 +3020,7 @@ rapid_commit_handler(struct packet *pack
|
|
|
54343e |
return;
|
|
|
54343e |
}
|
|
|
54343e |
|
|
|
54343e |
- lease = dhc6_leaseify(packet);
|
|
|
54343e |
+ lease = dhc6_leaseify(packet, client);
|
|
|
54343e |
|
|
|
54343e |
/* This is an out of memory condition...hopefully a temporary
|
|
|
54343e |
* problem. Returning now makes us try to retransmit later.
|
|
|
54343e |
@@ -3823,7 +3834,7 @@ reply_handler(struct packet *packet, str
|
|
|
54343e |
return;
|
|
|
54343e |
}
|
|
|
54343e |
|
|
|
54343e |
- lease = dhc6_leaseify(packet);
|
|
|
54343e |
+ lease = dhc6_leaseify(packet, client);
|
|
|
54343e |
|
|
|
54343e |
/* This is an out of memory condition...hopefully a temporary
|
|
|
54343e |
* problem. Returning now makes us try to retransmit later.
|
|
|
54343e |
diff -up dhcp-4.2.5/RELNOTES.prepend dhcp-4.2.5/RELNOTES
|