<div dir="ltr"><p>Hello Kea team,</p>
<p>I am testing the <code>libdhcp_ping_check.so</code> hook library and observed some behavior I’d like clarification on.<br><br>My configuration:<br>"hooks-libraries": [<br> {<br> "library": "libdhcp_ping_check.so",<br> "parameters": {<br> "enable-ping-check": true<br> }<br> }<br>],<br><br>"subnet4": [<br> {<br> "subnet": "<a href="http://20.20.20.0/24">20.20.20.0/24</a>",<br> "user-context": {<br> "enable-ping-check": false<br> },<br> "pools": [<br> {<br> "pool": "20.20.20.8 - 20.20.20.10"<br> }<br> ]<br> }<br>]<br><br></p><p>Expectation:</p><ul>
<li>
<p>Since I set <code>"enable-ping-check": false</code> at the <strong>subnet level</strong>, I expected no ICMP checks for leases in that subnet/pool.</p>
</li>
</ul><p>Observation:</p><p>
</p><pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-sticky gmail-top-9"><div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2"><div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs"></div></div></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"></div></div></pre><p></p><ul>
<li><p>When running the server and requesting a lease, I still see ping-check activity in the logs:</p></li><li><p>2025-08-29 07:00:33.476 DEBUG [kea-dhcp4.ping-check-hooks] PING_CHECK_MGR_START_PING_CHECK for 20.20.20.8 ...<br>2025-08-29 07:00:33.477 DEBUG [kea-dhcp4.ping-check-hooks] PING_CHECK_CHANNEL_ECHO_REQUEST_SENT to address 20.20.20.8<br>2025-08-29 07:00:33.577 DEBUG [kea-dhcp4.ping-check-hooks] PING_CHECK_MGR_REPLY_TIMEOUT_EXPIRED for 20.20.20.8 ...<br>2025-08-29 07:00:33.577 DEBUG [kea-dhcp4.ping-check-hooks] PING_CHECK_MGR_LEASE_FREE_TO_USE address 20.20.20.8 ...<br></p></li>
</ul><div><p>Question:</p>
<ul>
<li>
<p>Is this the <strong>intended behavior</strong> (global parameter overriding subnet-level user-context),<br>
or should the <code>"enable-ping-check": false</code> at subnet level disable ICMP checks for that subnet?</p>
</li>
</ul>
<p>Thanks in advance for clarification.</p>
<p>Regards,<br>
Dipesh</p></div>
<p></p></div>