mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
found path negotation sends that weren't accounted for
This commit is contained in:
parent
595e033776
commit
ed88cdfd26
2 changed files with 2 additions and 0 deletions
|
@ -809,6 +809,7 @@ void Bond::sendPATH_NEGOTIATION_REQUEST(void* tPtr, int pathIdx)
|
||||||
Packet outp(_peer->_id.address(), RR->identity.address(), Packet::VERB_PATH_NEGOTIATION_REQUEST);
|
Packet outp(_peer->_id.address(), RR->identity.address(), Packet::VERB_PATH_NEGOTIATION_REQUEST);
|
||||||
outp.append<int16_t>(_localUtility);
|
outp.append<int16_t>(_localUtility);
|
||||||
if (_paths[pathIdx].p->address()) {
|
if (_paths[pathIdx].p->address()) {
|
||||||
|
Metrics::pkt_path_negotiation_request_out++;
|
||||||
outp.armor(_peer->key(), false, _peer->aesKeysIfSupported());
|
outp.armor(_peer->key(), false, _peer->aesKeysIfSupported());
|
||||||
RR->node->putPacket(tPtr, _paths[pathIdx].p->localSocket(), _paths[pathIdx].p->address(), outp.data(), outp.size());
|
RR->node->putPacket(tPtr, _paths[pathIdx].p->localSocket(), _paths[pathIdx].p->address(), outp.data(), outp.size());
|
||||||
_overheadBytes += outp.size();
|
_overheadBytes += outp.size();
|
||||||
|
|
|
@ -234,6 +234,7 @@ void Peer::received(
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
if (count) {
|
if (count) {
|
||||||
|
Metrics::pkt_push_direct_paths_out++;
|
||||||
outp->setAt(ZT_PACKET_IDX_PAYLOAD,(uint16_t)count);
|
outp->setAt(ZT_PACKET_IDX_PAYLOAD,(uint16_t)count);
|
||||||
outp->compress();
|
outp->compress();
|
||||||
outp->armor(_key,true,aesKeysIfSupported());
|
outp->armor(_key,true,aesKeysIfSupported());
|
||||||
|
|
Loading…
Add table
Reference in a new issue