mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 21:33:57 -07:00
debug when phyOnDataGram is called
This commit is contained in:
parent
8affcb0e3d
commit
7412076a0a
1 changed files with 6 additions and 0 deletions
|
@ -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<const InetAddress*>(from);
|
||||
fprintf(stderr, "phyOnDatagram: len %lu - from %s - scope: %d\n", len, x->toString(buf), x->ipScope());
|
||||
|
||||
|
||||
if ((len >= 16) && (reinterpret_cast<const InetAddress*>(from)->ipScope() == InetAddress::IP_SCOPE_GLOBAL)) {
|
||||
_lastDirectReceiveFromGlobal = now;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue