From 7412076a0a9c282db4399588d36212c4480dc519 Mon Sep 17 00:00:00 2001 From: Travis LaDuke Date: Thu, 10 Jul 2025 08:00:47 -0700 Subject: [PATCH] debug when phyOnDataGram is called --- service/OneService.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/service/OneService.cpp b/service/OneService.cpp index 69a0daca0..ed771c774 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -2993,6 +2993,12 @@ class OneServiceImpl : public OneService { } Metrics::udp_recv += len; const uint64_t now = OSUtils::now(); + + char buf[255]; + auto x = reinterpret_cast(from); + fprintf(stderr, "phyOnDatagram: len %lu - from %s - scope: %d\n", len, x->toString(buf), x->ipScope()); + + if ((len >= 16) && (reinterpret_cast(from)->ipScope() == InetAddress::IP_SCOPE_GLOBAL)) { _lastDirectReceiveFromGlobal = now; }