mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-19 13:36:54 +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);
|
||||
outp.append<int16_t>(_localUtility);
|
||||
if (_paths[pathIdx].p->address()) {
|
||||
Metrics::pkt_path_negotiation_request_out++;
|
||||
outp.armor(_peer->key(), false, _peer->aesKeysIfSupported());
|
||||
RR->node->putPacket(tPtr, _paths[pathIdx].p->localSocket(), _paths[pathIdx].p->address(), outp.data(), outp.size());
|
||||
_overheadBytes += outp.size();
|
||||
|
|
|
@ -234,6 +234,7 @@ void Peer::received(
|
|||
++p;
|
||||
}
|
||||
if (count) {
|
||||
Metrics::pkt_push_direct_paths_out++;
|
||||
outp->setAt(ZT_PACKET_IDX_PAYLOAD,(uint16_t)count);
|
||||
outp->compress();
|
||||
outp->armor(_key,true,aesKeysIfSupported());
|
||||
|
|
Loading…
Add table
Reference in a new issue