Okay that was pretty simple.

"hooks-libraries": [
        {
            "library": 
"/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_flex_option.so",
            "parameters": {
                "options": [
                    {
                        "code": 1,
                        "supersede": "255.255.255.255",
                        "csv-format": false
                    }
                ]
            }

        },
    ],

Is working in my case. Thanks for the quick support.

> On 16. Nov 2022, at 17:22, Francis Dupont <[email protected]> wrote:
> 
> Ritterhoff, Florian writes:
> 
>> Setting the code 1 to 255.255.255.255 using the option data does not
>> seem to work?
> 
> => yes, as explained in the ARM the netmask is one of the options
> directly managed by Kea so it can't be configured.
> 
> quoting it from the sources:
>> :ref:`dhcp4-std-options-list` comprises the list of the
>> standard DHCPv4 options whose values can be configured using the
>> configuration structures described in this section. This table excludes
>> the options which require special processing and thus cannot be
>> configured with fixed values.
> 
>> Is there maybe any advice what options should be changed or modified?
> 
> => if it can't be configured it still can be overwritten using the
> flex_option hook (I wonder if it is not the most changed option in
> DHCPv4? :-) so the response will have the value you want instead
> the value deduced from the config.
> 
> Thanks
> 
> Francis Dupont <[email protected]>
> 
> PS: please share the flex_option config so the next person who will have
> a similar problem can save time (the question is not whether but when :-).
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to