[kea-dev] I'd appreciate some feedback on trac ticket 3963 :)
Angelo Failla
pallotron at fb.com
Tue Aug 4 19:43:30 UTC 2015
On August 4, 2015 at 6:30:09 PM, Marcin Siodelski (marcin at isc.org<mailto:marcin at isc.org>) wrote:
On 04.08.2015 17:35, Angelo Failla wrote:
> On August 4, 2015 at 4:34:30 PM, Marcin Siodelski (marcin at isc.org
> <mailto:marcin at isc.org>) wrote:
>>
>> > one nice thing to also get rid of, when enabling the stateless switch,
>> > is to
>> > avoid this horrible hack to allow KEA to start :)
>> >
>> > 'subnet4' => [
>> > {
>> > 'subnet' => '0.0.0.0/0',
>> > 'pools' => [{ 'pool' => '0.0.0.0-255.255.255.255' }]
>> > },
>> > ],
>> >
>>
>> As a matter of curiosity. If you're having this hack already could you
>> possibly implement the lease4_select hook to set the yiaddr to non-zero
>> value in the DHCPOFFER, which would case processDiscover to not drop the
>> packet?
>>
>
> Yeah, I will try that and report back.
Actually, wouldn't it suffice to just restrict the pool to
0.0.0.1-255.255.255.255C?
That way none of the clients would ever be assigned a zero address and
the packet wouldn't be dropped.
So I tried that, and compiled my hook lib w/o the change in https://github.com/isc-projects/kea/pull/11
and it doesn’t solve the problem, I see that only my pkt4_receive callout gets called, then I see
2015-08-04 12:34:59.869 ERROR [kea-dhcp4.bad-packets/966953] DHCP4_PACKET_NAK_0001
[hwtype=1 00:02:c9:de:70:4e], cid=[no info], tid=0x2eed: failed to select a subnet for incoming packet,
src 10.35.139.81, type DHCPDISCOVER
and that’s it. no pkt4_send is called.
config has this:
"subnet4": [
{
"subnet": "0.0.0.1/0",
"pools": [
{
"pool": "0.0.0.1-255.255.255.255"
}
]
}
]
Anyway, it’s not a big deal, we got a version that is going to prod with my github change above for the time
being.
let me know how your meeting goes in relation to the proposed change.
--
Angelo Failla - Cluster Infrastructure Dublin
pallotron at fb.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-dev/attachments/20150804/769db1b5/attachment.html>
More information about the kea-dev
mailing list