Thanks to Andrey Jr. Melnikov for the bug report.
[ISC-Bugs #41217]
+- Option expressions, such as prepend and append, are now supported when
+ running dhclient for IPv6. Prior to this such statements in the
+ client configuration file would be parsed but have no affect. Thanks
+ to Jiri Popelka at Red Hat for reporting the issue.
+ [ISC-Bugs #39952]
+
Changes since 4.1-ESV-R12b1
- None
/* dhc6.c - DHCPv6 client routines. */
/*
- * Copyright (c) 2012-2015 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2012-2016 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2006-2010 by Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and distribute this software for any
*
*/
static struct dhc6_lease *
-dhc6_leaseify(struct packet *packet)
+dhc6_leaseify(struct packet *packet, struct client_state* client)
{
struct data_string ds;
struct dhc6_lease *lease;
lease->server_id.data, 52));
}
+ execute_statements_in_scope(NULL, (struct packet *)packet, NULL,
+ client, lease->options, lease->options,
+ &global_scope, client->config->on_receipt,
+ NULL);
+
return lease;
}
return;
}
- lease = dhc6_leaseify(packet);
+ lease = dhc6_leaseify(packet, client);
/* Out of memory or corrupt packet condition...hopefully a temporary
* problem. Returning now makes us try to retransmit later.
option_state_reference(&client->active_lease->options,
packet->options, MDL);
+ execute_statements_in_scope(NULL, (struct packet *)packet, NULL, client,
+ client->active_lease->options,
+ client->active_lease->options,
+ &global_scope, client->config->on_receipt,
+ NULL);
+
start_informed(client);
}
return;
}
- lease = dhc6_leaseify(packet);
+ lease = dhc6_leaseify(packet, client);
/* Out of memory or corrupt packet condition...hopefully a temporary
* problem. Returning now makes us try to retransmit later.
return;
}
- lease = dhc6_leaseify(packet);
+ lease = dhc6_leaseify(packet, client);
/* Out of memory or corrupt packet condition...hopefully a temporary
* problem. Returning now makes us try to retransmit later.