{
VALUE_PAIR *vp;
isc_host_ether_t *ether, my_ether;
+ rlm_isc_dhcp_info_t *host = NULL;
/*
* Look up the host first by client identifier.
my_client.client = &(vp->data);
client = fr_hash_table_finddata(head->client_identifiers, &my_client);
- if (client) return client->host;
+ if (client) {
+ host = client->host;
+ goto done;
+ }
}
ether = fr_hash_table_finddata(head->hosts, &my_ether);
if (!ether) return NULL;
- return ether->host;
+ host = ether->host;
+
+done:
+ /*
+ * @todo - check "fixed-address". This host entry should
+ * match ONLY if one of the addresses matches the network
+ * on which the client is booting.
+ */
+
+ return host;
}