Setting host-identifier from omapi
Christian Kratzer
ck-lists at cksoft.de
Mon Sep 24 09:23:04 UTC 2012
Hi,
I am reasearching the possibility of setting up hosts identified by dhcp option 82 circuit-id or subscriber-id using omapi as follows:
host foo {
host-identifier option agent.circuit-id "foo"
fixed-address 192.0.2.99;
}
I found following thread from January this year:
https://lists.isc.org/pipermail/dhcp-users/2012-January/014807.html
>From looking at the defintion of dhcp_host_set_value in server/omapi.c using host-identifier does not seem to be supported currently.
>From further reading it seems that dhcp_host_set_value sets value in a struct host_decl instance. I see there is a "struct option *host_id_option;" in host_decl.
In order to support host-identifiers over omapi would it be enough to extend dhcp_host_set_value to parse an option into host_id_option of host_decl by taking the code from server/confparse.c after if (token == HOST_IDENTIFIER) at approx line 1893 ?
I am inclined to attempt a path but would like some confirmation that I am on the right track before opening up a can of worms.
Greetings
Christian
--
Christian Kratzer CK Software GmbH
Email: ck at cksoft.de Wildberger Weg 24/2
Phone: +49 7032 893 997 - 0 D-71126 Gaeufelden
Fax: +49 7032 893 997 - 9 HRB 245288, Amtsgericht Stuttgart
Web: http://www.cksoft.de/ Geschaeftsfuehrer: Christian Kratzer
More information about the dhcp-hackers
mailing list