From 6cf44f57d15aefcb3e2f662722b44e3a5a3224f9 Mon Sep 17 00:00:00 2001 From: Cobra Date: Tue, 14 Apr 2026 16:18:12 -0400 Subject: [PATCH] =?UTF-8?q?Disable=20active=20probes=20=E2=80=94=20passive?= =?UTF-8?q?-only=20operation=20required?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit arping/ICMP probes on device appearance violate the passive-only design constraint. Stub out _fire_active_probes to return immediately. --- net_alerter/net_alerter.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/net_alerter/net_alerter.py b/net_alerter/net_alerter.py index 00f8b03..89a590d 100644 --- a/net_alerter/net_alerter.py +++ b/net_alerter/net_alerter.py @@ -170,15 +170,13 @@ def _create_identity_record(identity_id: str) -> dict: def _fire_active_probes(identity_id: str, mac: str, signal_type: str, dhcp_fp: str) -> None: - """Fire active probes when a new device identity is created. + """Disabled — passive-only operation. No active probes sent.""" + return - Non-blocking: runs probes in a thread to avoid stalling the main loop. - Attempts ARP ping if IP available, or mDNS query if hostname available. - """ + +def _fire_active_probes_DISABLED(identity_id: str, mac: str, signal_type: str, dhcp_fp: str) -> None: def _probe_worker(): try: - # For now, log that probes were fired. Real probe logic can use scapy or zeroconf if available. - # This is a non-blocking thread so we don't stall the correlator. with device_store_lock: if identity_id not in device_store: return