<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">First you get the pointer to cumulative
      option:<br>
      OptionPtr rai = query->getOption(DHO_DHCP_AGENT_OPTIONS);<br>
      <br>
      And then you get the options inside:<br>
      OptionPtr circuit_id_opt =
      rai->getOption(RAI_OPTION_AGENT_CIRCUIT_ID);<br>
      OptionPtr remote_id_opt = rai->getOption(RAI_OPTION_REMOTE_ID);<br>
      <br>
      Igor<br>
      <br>
      On 01/05/2017 09:26 AM, Alexander Silveröhrt wrote:<br>
    </div>
    <blockquote
cite="mid:VI1PR0601MB22885D4CFFB2E2583A9E258B86600@VI1PR0601MB2288.eurprd06.prod.outlook.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html;
        charset=iso-8859-1">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Hello,</span></p>
        <p class="MsoNormal"><span lang="EN-US">We have our client
            identifiers in remote-id and circuit-id (and its not mac
            address)<br>
            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 ?<br>
            <br>
            Is there a way to extract sub-options from something like
            option82?<br>
            Similar to getOption for a option without sub-options?</span></p>
        <p class="MsoNormal"><span lang="EN-US">OptionPtr option60 =
            query4_ptr->getOption(60);</span></p>
        <p class="MsoNormal"><span lang="EN-US"> </span></p>
        <p class="MsoNormal"><span lang="EN-US">Or do I have to take
            what will be in OptionPtr option82 =
            query4_ptr->getOption(82) and then extract it myself?</span></p>
        <p class="MsoNormal"><span lang="EN-US"> </span></p>
        <p class="MsoNormal"><span lang="EN-US">I am thinking there must
            be ready made variables created to retrieve for remote and
            circuit id like in old isc-dhcp
            <br>
            option agent.circuit-id </span></p>
        <p class="MsoNormal"><span lang="EN-US">option agent.remote-id</span></p>
        <p class="MsoNormal"><span lang="EN-US">Best regards</span></p>
        <p class="MsoNormal"><span lang="EN-US">Alex</span></p>
      </div>
      <br>
      <div>********* DISCLAIMER ********* <br>
        <br>
        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
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kea-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>