summaryrefslogtreecommitdiff
path: root/client/clparse.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2009-03-13 21:41:45 +0000
committerDavid Hankins <dhankins@isc.org>2009-03-13 21:41:45 +0000
commit0829d595f8f98ad4121cfc96870958e359c099cc (patch)
tree01078a188bf6ca45177c423dd299ed480eff3889 /client/clparse.c
parent4b97eaff2f22bf1743ea67ac477c9aef72070ed4 (diff)
downloadisc-dhcp-0829d595f8f98ad4121cfc96870958e359c099cc.tar.gz
- If configured, dhclient may now transmit to an anycast MAC address,
rather than using a broadcast address. Thanks to a patch from David Cantrell at Red Hat. [ISC-Bugs #17740]
Diffstat (limited to 'client/clparse.c')
-rw-r--r--client/clparse.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/clparse.c b/client/clparse.c
index 52a7db25..2cab5f93 100644
--- a/client/clparse.c
+++ b/client/clparse.c
@@ -541,6 +541,17 @@ void parse_client_statement (cfile, ip, config)
}
return;
+ case ANYCAST_MAC:
+ token = next_token(&val, NULL, cfile);
+ if (ip != NULL) {
+ parse_hardware_param(cfile, &ip->anycast_mac_addr);
+ } else {
+ parse_warn(cfile, "anycast mac address parameter "
+ "not allowed here.");
+ skip_to_semi (cfile);
+ }
+ return;
+
case REQUEST:
token = next_token (&val, (unsigned *)0, cfile);
if (config -> requested_options == default_requested_options)