First you get the pointer to cumulative option:
OptionPtr rai = query->getOption(DHO_DHCP_AGENT_OPTIONS);
And then you get the options inside:
OptionPtr circuit_id_opt = rai->getOption(RAI_OPTION_AGENT_CIRCUIT_ID);
OptionPtr remote_id_opt = rai->getOption(RAI_OPTION_REMOTE_ID);
Igor
On 01/05/2017 09:26 AM, Alexander Silveröhrt wrote:
Hello,
We have our client identifiers in remote-id and circuit-id (and its
not mac address)
I am trying to find a way in the hooks we are trying to write to
extract remote-id and circuit-id from the options in the package but
can’t seem to find a way to reach a sub-option ?
Is there a way to extract sub-options from something like option82?
Similar to getOption for a option without sub-options?
OptionPtr option60 = query4_ptr->getOption(60);
Or do I have to take what will be in OptionPtr option82 =
query4_ptr->getOption(82) and then extract it myself?
I am thinking there must be ready made variables created to retrieve
for remote and circuit id like in old isc-dhcp
option agent.circuit-id
option agent.remote-id
Best regards
Alex
********* DISCLAIMER *********
This message and any attachment are confidential and may be privileged
or otherwise protected from disclosure and may include proprietary
information. If you are not the intended recipient, please telephone
or email the sender and delete this message and any attachment from
your system. If you are not the intended recipient you must not copy
this message or attachment or disclose the contents to any other person
_______________________________________________
Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users
_______________________________________________
Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users