Re: [Kea-users] next-server-address in hooks for UEFI config servers

2018-05-30 Thread Francis Dupont
Gokulakrishnan Gopalakrishnan writes:
> Currently, I'm hardcoding 'next-server' in kea.conf. Is it possible to do
> it via hook code?

=> yes of course. BTW the way to set the next server address field
(aka siaddr) in BOOTP/DHCP packet is the Pkt4 setSiaddr() method.

Regards

Francis Dupont 
___
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


Re: [Kea-users] next-server-address in hooks for UEFI config servers

2018-05-29 Thread Gokulakrishnan Gopalakrishnan
Francis,
Currently, I'm hardcoding 'next-server' in kea.conf. Is it possible to do
it via hook code?

On Fri, May 25, 2018 at 4:23 PM, Gokulakrishnan Gopalakrishnan <
ggopalakrish...@salesforce.com> wrote:

> Thanks, Francis. If I want to get rid of hardcoding 'next-server' from
> kea.conf and move it to the hooks library by setting the field dynamically,
> what it the right way?
>
> On Fri, May 25, 2018 at 4:00 PM, Francis Dupont  wrote:
>
>> Gokulakrishnan Gopalakrishnan writes:
>> > I'm trying to assign IPs to my servers using Kea 1.3.0. Some of my
>> servers
>> > are UEFI configured ones and those are failing in getting IP.
>> > When I dig deep, I found out that setting "next-server": "192.168.1.1"
>> > manually in kea.conf works fine. I was setting next-server via hooks
>> code
>> > (pasted below).
>>
>> => next-server is a BOOTP/DHCP field, not an option. Note some of these
>> fields have a corresponding option used for instance when the field
>> is too small (can't happen with an IPv4 address :-).
>>
>> > // Add next server option to packet.
>> > opt = response->getOption(DHO_HOME_AGENT_ADDRS);
>>
>> => This option gives a list (vs one) of addresses of the Mobile IP
>> home agent. So it is something different (but if it makes the client
>> happy...).
>>
>> Regards
>>
>> Francis Dupont 
>>
>
>
___
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


Re: [Kea-users] next-server-address in hooks for UEFI config servers

2018-05-25 Thread Gokulakrishnan Gopalakrishnan
Thanks, Francis. If I want to get rid of hardcoding 'next-server' from
kea.conf and move it to the hooks library by setting the field dynamically,
what it the right way?

On Fri, May 25, 2018 at 4:00 PM, Francis Dupont  wrote:

> Gokulakrishnan Gopalakrishnan writes:
> > I'm trying to assign IPs to my servers using Kea 1.3.0. Some of my
> servers
> > are UEFI configured ones and those are failing in getting IP.
> > When I dig deep, I found out that setting "next-server": "192.168.1.1"
> > manually in kea.conf works fine. I was setting next-server via hooks code
> > (pasted below).
>
> => next-server is a BOOTP/DHCP field, not an option. Note some of these
> fields have a corresponding option used for instance when the field
> is too small (can't happen with an IPv4 address :-).
>
> > // Add next server option to packet.
> > opt = response->getOption(DHO_HOME_AGENT_ADDRS);
>
> => This option gives a list (vs one) of addresses of the Mobile IP
> home agent. So it is something different (but if it makes the client
> happy...).
>
> Regards
>
> Francis Dupont 
>
___
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


Re: [Kea-users] next-server-address in hooks for UEFI config servers

2018-05-25 Thread Francis Dupont
Gokulakrishnan Gopalakrishnan writes:
> I'm trying to assign IPs to my servers using Kea 1.3.0. Some of my servers
> are UEFI configured ones and those are failing in getting IP.
> When I dig deep, I found out that setting "next-server": "192.168.1.1"
> manually in kea.conf works fine. I was setting next-server via hooks code
> (pasted below).

=> next-server is a BOOTP/DHCP field, not an option. Note some of these
fields have a corresponding option used for instance when the field
is too small (can't happen with an IPv4 address :-).

> // Add next server option to packet.
> opt = response->getOption(DHO_HOME_AGENT_ADDRS);

=> This option gives a list (vs one) of addresses of the Mobile IP
home agent. So it is something different (but if it makes the client
happy...).

Regards

Francis Dupont 
___
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users