mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
capture counts of packets to specific peers
This commit is contained in:
parent
427634e1f0
commit
f496c31d85
2 changed files with 1 additions and 1 deletions
|
@ -658,6 +658,7 @@ void Peer::resetWithinScope(void *tPtr,InetAddress::IpScope scope,int inetAddres
|
||||||
void Peer::recordOutgoingPacket(const SharedPtr<Path> &path, const uint64_t packetId,
|
void Peer::recordOutgoingPacket(const SharedPtr<Path> &path, const uint64_t packetId,
|
||||||
uint16_t payloadLength, const Packet::Verb verb, const int32_t flowId, int64_t now)
|
uint16_t payloadLength, const Packet::Verb verb, const int32_t flowId, int64_t now)
|
||||||
{
|
{
|
||||||
|
_outgoing_packet++;
|
||||||
if (_localMultipathSupported && _bond) {
|
if (_localMultipathSupported && _bond) {
|
||||||
_bond->recordOutgoingPacket(path, packetId, payloadLength, verb, flowId, now);
|
_bond->recordOutgoingPacket(path, packetId, payloadLength, verb, flowId, now);
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,7 +144,6 @@ public:
|
||||||
{
|
{
|
||||||
SharedPtr<Path> bp(getAppropriatePath(now,force));
|
SharedPtr<Path> bp(getAppropriatePath(now,force));
|
||||||
if (bp) {
|
if (bp) {
|
||||||
_outgoing_packet++;
|
|
||||||
return bp->send(RR,tPtr,data,len,now);
|
return bp->send(RR,tPtr,data,len,now);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue