<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 27/11/2019 10:09,
      <a class="moz-txt-link-abbreviated" href="mailto:chris@slater-walker.net">chris@slater-walker.net</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ce15cbb55fdf7b23db6ace946a03231b@rufus.slater-walker.net">
      <div>That's it; I need to give this to DHCP clients as a simple
        ascii text string but I can't find a piece of documentation
        which tells me how to do this. My attempts at configuring it
        always end up with an error.</div>
      <div><br>
      </div>
    </blockquote>
    <p>What kind of error - does KEA itself report an error?  If so,
      what does the error message actually say?</p>
    <p>Or does KEA accept it, but your client device doesn't receive the
      attribute, or not in the format it expects?  In that case, what
      does tcpdump show?<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
      cite="mid:ce15cbb55fdf7b23db6ace946a03231b@rufus.slater-walker.net">
      <div>This is what I currently have:</div>
      <div><br>
      </div>
      <div>"subnet4": [<br>
                {<br>
                    "subnet": "192.168.2.0/24",<br>
                             "option-data": [<br>
                        {<br>
                            "name": "AP-option",<br>
                            "code": 191,<br>
                            "data": "pool1=192.168.2.249;level=1"<br>
                        }</div>
      <div>            ],...</div>
      <div>        }<br>
      </div>
      <div><br>
      </div>
    </blockquote>
    <p><a
href="https://kea.readthedocs.io/en/v1_6_0/arm/dhcp4-srv.html#custom-dhcpv4-options">https://kea.readthedocs.io/en/v1_6_0/arm/dhcp4-srv.html#custom-dhcpv4-options</a></p>
    <p>Try:</p>
    <pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 12px; white-space: pre; margin: 0px; padding: 12px; display: block; overflow: auto; line-height: 1.4; color: rgb(64, 64, 64); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"Dhcp4"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="p" style="box-sizing: border-box;">{</span>
    <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"option-def"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="p" style="box-sizing: border-box;">[</span>
        <span class="p" style="box-sizing: border-box;">{</span>
            <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"name"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"AP-option"</span><span class="p" style="box-sizing: border-box;">,</span>
            <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"code"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="mi" style="box-sizing: border-box; color: rgb(102, 102, 102);">191</span><span class="p" style="box-sizing: border-box;">,</span>
            <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"type"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"string"</span><span class="p" style="box-sizing: border-box;">,</span>
            <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"array"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="n" style="box-sizing: border-box;">false</span><span class="p" style="box-sizing: border-box;">,</span>
            <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"space"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"dhcp4"</span><span class="p" style="box-sizing: border-box;">,</span>
        <span class="p" style="box-sizing: border-box;">},</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">...</span></pre>
    <br>
    <p>Then under the subnet:<br>
    </p>
    <pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 12px; white-space: pre; margin: 0px; padding: 12px; display: block; overflow: auto; line-height: 1.4; color: rgb(64, 64, 64); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">    <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"option-data"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="p" style="box-sizing: border-box;">[</span>
        <span class="p" style="box-sizing: border-box;">{</span>
            <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"name"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"AP-option"</span><span class="p" style="box-sizing: border-box;">,</span>
            <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"code"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="mi" style="box-sizing: border-box; color: rgb(102, 102, 102);">191</span><span class="p" style="box-sizing: border-box;">,</span>
            <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"space"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"dhcp4"</span><span class="p" style="box-sizing: border-box;">,</span>
            <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"data"</span><span class="p" style="box-sizing: border-box;">:</span> <span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">"</span><span class="s2" style="box-sizing: border-box; color: rgb(186, 33, 33);">pool1=192.168.2.249;level=1"</span>
        <span class="p" style="box-sizing: border-box;">},</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">...</span></pre>
    <p>(Aside: I don't know why the code and space are duplicated in
      option-data, even though they've already been defined in
      option-def, but that's what the examples show)<br>
    </p>
    <p>HTH,</p>
    <p>Brian.<br>
    </p>
  </body>
</html>