<div dir="ltr">Hi Darren, <div><br></div><div>Thank you for the suggestion but I am still facing the same problem.</div><div><br></div><div>        {<br>                     "code": "43",<br>                    "csv-format": true,<br>                    "data": "74657374",<br>               },<br></div><div><br></div><div>---> With the above format I am getting a few issues because of double quotes for the code, and for CSV format, If I set that to true I am getting an error as </div><div>2023-06-13 06:23:40.309 ERROR [kea-dhcp4.dhcp4/6561.139810011805888] DHCP4_PARSER_FAIL failed to create or run parser for configuration element subnet4: option data does not match option definition (space: dhcp4, code: 43): attempt to write invalid option data field type into the option buffer: 0 (kea-dhcp4.conf:60:27)<br>Error encountered: option data does not match option definition (space: dhcp4, code: 43): attempt to write invalid option data field type into the option buffer: 0 (kea-dhcp4.conf:60:27)<br></div><div><br></div><div>The final trial is as follows:<div>        {<br></div>                     "code": "43",<br>                    "csv-format": false,<br>                    "data": "74657374",<br><div>               },  </div></div><div><br></div><div>This also gave me an empty for option 43  in the ACK packet.</div><div><br></div><div>This is the subnet of the ISC config that I using for testing</div><div> subnet 3.4.0.0 netmask 255.255.0.0 {<br>        pool {<br>                range 3.4.0.2 3.4.0.5;<br>                range 3.4.0.12 3.4.0.16;<br>                range 3.4.0.41 3.4.0.56;<br>        }<br>                default-lease-time 86400;<br>                max-lease-time 86400;<br>                option domain-name "<a href="http://test.com">test.com</a>";<br>                option domain-name-servers 6.6.6.6,7.7.7.7,8.8.8.4;<br>                option routers 3.4.0.1;<br>                option subnet-mask 255.255.0.0;<br>                option vendor-encapsulated-options "test"; <br>}<br></div><div><br></div><div>Thanks </div><div>Kraishak</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 13, 2023 at 12:35 AM Darren Ankney <<a href="mailto:darren.ankney@gmail.com">darren.ankney@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Kraishak,<br>
<br>
Have a look here:<br>
<a href="https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html?highlight=%22vendor-encapsulated-options%22#dhcpv4-vendor-specific-options" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html?highlight=%22vendor-encapsulated-options%22#dhcpv4-vendor-specific-options</a><br>
<br>
You might need to setup encapsulated sub-options and tell Kea to<br>
include the "vendor-encapsulated-options-space" content in the options<br>
as a sub-option:<br>
<br>
 "option-data": [<br>
   {<br>
     "name": "REPLACE_ME",<br>
     "space": "vendor-encapsulated-options",<br>
     "code": 1,<br>
     "csv-format": false,<br>
     "data": "74657374"<br>
   },<br>
    {<br>
       "name": "vendor-encapsulated-options"<br>
      }<br>
  ]<br>
<br>
So, above, first the data is added as a sub-option of option 43<br>
(option 43 typically consists of one or more sub-options).  Replace<br>
"REPLACE_ME" with the name of the sub-option you are trying to send (I<br>
think you can omit name entirely if there is none as that part isn't<br>
sent).  Set the code to the correct sub-option number.  If this<br>
particular data should not be a sub-option, then you might have to do<br>
something like this:<br>
<br>
        {<br>
                     "code": "43",<br>
                    "csv-format": true,<br>
                    "data": "74657374",<br>
               },<br>
<br>
please note that if "csv-format" is set to false, then Kea will be<br>
expecting "a hexadecimal string." see:<br>
<a href="https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html?highlight=%22csv-format%22#standard-dhcpv4-options" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html?highlight=%22csv-format%22#standard-dhcpv4-options</a><br>
<br>
Can you share the option 43 portion of the ISC DHCP configuration you<br>
are trying to convert if you still have trouble?<br>
<br>
Thank you,<br>
<br>
Darren Ankney<br>
<br>
On Mon, Jun 12, 2023 at 1:59 PM Kraishak Mahtha <<a href="mailto:kraishak.edu@gmail.com" target="_blank">kraishak.edu@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
> I am trying to convert my ISC config to kea-equivalent and testing the changes as part of the testing, I am stuck at testing option 43 ,<br>
> Using the keama tool I convert my ISC config to Kea equivalent config and tested the leases but in the DHCP ACK packet I cannot see option 43 coming when I operate with Kea<br>
><br>
> sample code config for option 43 that I used in my testing subnet<br>
>            {<br>
>                     "data": "74657374",<br>
>                     "name": "vendor-encapsulated-options",<br>
>                     "csv-format": false<br>
>                 },<br>
><br>
> But in log and tcpdump I see the empty value for option 43<br>
><br>
> Log:<br>
> ===<br>
> 2023-06-12 15:10:26.284 DEBUG [kea-dhcp4.packets/30590.140464453838592] DHCP4_RESPONSE_DATA [hwtype=1 21:21:2f:00:00:01], cid=[01:21:21:2f:00:00:01]x8259145: responding with packet DHCPACK (type 5), packet details: local_address=<a href="http://192.168.0.125:67" rel="noreferrer" target="_blank">192.168.0.125:67</a>, remote_address=<a href="http://4.0.0.1:67" rel="noreferrer" target="_blank">4.0.0.1:67</a>, msg_type=DHCPACK (5), =0x8259145,<br>
> options:<br>
>   type=001, len=004: 4294901760 (uint32)<br>
>   type=003, len=004: 4.0.0.1<br>
>   type=006, len=012: 6.6.6.6 7.7.7.7 8.8.8.4<br>
>   type=012, len=018: "dhcp-client-000001" (string)<br>
>   type=015, len=011: "<a href="http://test.com" rel="noreferrer" target="_blank">test.com</a>" (string)<br>
>   type=043, len=000:  ----->Empty Value, and I cross-verified the tcpdump too.<br>
>   type=051, len=004: 86400 (uint32)<br>
>   type=053, len=001: 5 (uint8)<br>
>   type=054, len=004: 192.168.0.125<br>
>   type=061, len=007: 01:21:21:2f:00:00:01<br>
><br>
> I have checked the discover packet option 55 just to make sure if my packet is asking for option 43 or not, and yes I can see option 43 in the option 55 parameter value.<br>
><br>
> I am not sure what is wrong I am doing, Can someone who has familiar can guide me<br>
><br>
> Thanks in Advance<br>
> Kraishak<br>
> --<br>
> ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
><br>
> To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
><br>
> Kea-users mailing list<br>
> <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</blockquote></div>