<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>body{font-family:Ubuntu Mono derivative Powerline,Arial;font-size:14px}</style>
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div id="bloop_customfont" style="font-family:Ubuntu Mono derivative Powerline,Arial;font-size:14px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
On August 4, 2015 at 6:30:09 PM, Marcin Siodelski (<a href="mailto:marcin@isc.org">marcin@isc.org</a>) wrote:</div>
<blockquote type="cite" class="clean_bq"><span>
<div>
<div></div>
<div><br>
<br>
On 04.08.2015 17:35, Angelo Failla wrote: <br>
> On August 4, 2015 at 4:34:30 PM, Marcin Siodelski (marcin@isc.org <br>
> <mailto:marcin@isc.org>) wrote: <br>
>> <br>
>> > one nice thing to also get rid of, when enabling the stateless switch, <br>
>> > is to <br>
>> > avoid this horrible hack to allow KEA to start :) <br>
>> > <br>
>> > 'subnet4' => [ <br>
>> > { <br>
>> > 'subnet' => '0.0.0.0/0', <br>
>> > 'pools' => [{ 'pool' => '0.0.0.0-255.255.255.255' }] <br>
>> > }, <br>
>> > ], <br>
>> > <br>
>> <br>
>> As a matter of curiosity. If you're having this hack already could you <br>
>> possibly implement the lease4_select hook to set the yiaddr to non-zero <br>
>> value in the DHCPOFFER, which would case processDiscover to not drop the <br>
>> packet? <br>
>> <br>
> <br>
> Yeah, I will try that and report back. <br>
<br>
<br>
Actually, wouldn't it suffice to just restrict the pool to <br>
0.0.0.1-255.255.255.255C? <br>
<br>
That way none of the clients would ever be assigned a zero address and <br>
the packet wouldn't be dropped. <br>
</div>
</div>
</span></blockquote>
<div id="bloop_sign_1438716910999286016" class="bloop_sign">
<div style="font-family:helvetica,arial;font-size:13px"><br>
</div>
<div style="font-family:helvetica,arial;font-size:13px">So I tried that, and compiled my hook lib w/o the change in <font face="Ubuntu Mono derivative Powerline, Arial" size="3"><a href="https://github.com/isc-projects/kea/pull/11">https://github.com/isc-projects/kea/pull/11</a></font></div>
<div style="font-family:helvetica,arial;font-size:13px">and it doesn’t solve the problem, I see that only my pkt4_receive callout gets called, then I see </div>
<div style="font-family:helvetica,arial;font-size:13px"><br>
</div>
<div style="font-family:helvetica,arial;font-size:13px">2015-08-04 12:34:59.869 ERROR [kea-dhcp4.bad-packets/966953] DHCP4_PACKET_NAK_0001 </div>
<div style="font-family:helvetica,arial;font-size:13px">[hwtype=1 00:02:c9:de:70:4e], cid=[no info], tid=0x2eed: failed to select a subnet for incoming packet,</div>
<div style="font-family:helvetica,arial;font-size:13px">src 10.35.139.81, type DHCPDISCOVER</div>
<div style="font-family:helvetica,arial;font-size:13px"><br>
</div>
<div style="font-family:helvetica,arial;font-size:13px">and that’s it. no pkt4_send is called.</div>
<div style="font-family:helvetica,arial;font-size:13px"><br>
</div>
<div style="font-family:helvetica,arial;font-size:13px">config has this:</div>
<div style="font-family:helvetica,arial;font-size:13px"><br>
</div>
<div style="font-family:helvetica,arial;font-size:13px">
<div>"subnet4": [</div>
<div> {</div>
<div> "subnet": "0.0.0.1/0",</div>
<div> "pools": [</div>
<div> {</div>
<div> "pool": "0.0.0.1-255.255.255.255"</div>
<div> }</div>
<div> ]</div>
<div> }</div>
<div>]</div>
<div><br>
</div>
<div>Anyway, it’s not a big deal, we got a version that is going to prod with my github change above for the time</div>
<div>being.</div>
<div><br>
</div>
<div>let me know how your meeting goes in relation to the proposed change.</div>
</div>
<div style="font-family:helvetica,arial;font-size:13px"><br>
</div>
<div style="font-family:helvetica,arial;font-size:13px">-- <br>
Angelo Failla - Cluster Infrastructure Dublin</div>
<div style="font-family:helvetica,arial;font-size:13px">pallotron@fb.com</div>
</div>
</body>
</html>