mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 04:53:44 +02:00
stub out new verbs
This commit is contained in:
parent
95a6fce2b4
commit
31bd413166
2 changed files with 6 additions and 4 deletions
|
@ -115,6 +115,9 @@ bool IncomingPacket::tryDecode(const RuntimeEnvironment *RR,void *tPtr)
|
||||||
case Packet::VERB_PUSH_DIRECT_PATHS: r = _doPUSH_DIRECT_PATHS(RR,tPtr,peer); break;
|
case Packet::VERB_PUSH_DIRECT_PATHS: r = _doPUSH_DIRECT_PATHS(RR,tPtr,peer); break;
|
||||||
case Packet::VERB_USER_MESSAGE: r = _doUSER_MESSAGE(RR,tPtr,peer); break;
|
case Packet::VERB_USER_MESSAGE: r = _doUSER_MESSAGE(RR,tPtr,peer); break;
|
||||||
case Packet::VERB_REMOTE_TRACE: r = _doREMOTE_TRACE(RR,tPtr,peer); break;
|
case Packet::VERB_REMOTE_TRACE: r = _doREMOTE_TRACE(RR,tPtr,peer); break;
|
||||||
|
case Packet::VERB_SET_LOCATOR: break;
|
||||||
|
case Packet::VERB_WILL_RELAY: break;
|
||||||
|
case Packet::VERB_EPHEMERAL_KEY: break;
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
} else {
|
} else {
|
||||||
|
@ -483,9 +486,8 @@ bool IncomingPacket::_doOK(const RuntimeEnvironment *RR,void *tPtr,const SharedP
|
||||||
|
|
||||||
bool IncomingPacket::_doWHOIS(const RuntimeEnvironment *RR,void *tPtr,const SharedPtr<Peer> &peer)
|
bool IncomingPacket::_doWHOIS(const RuntimeEnvironment *RR,void *tPtr,const SharedPtr<Peer> &peer)
|
||||||
{
|
{
|
||||||
// TODO
|
if (!peer->rateGateInboundWhoisRequest(RR->node->now()))
|
||||||
//if ((!RR->topology->amUpstream())&&(!peer->rateGateInboundWhoisRequest(RR->node->now())))
|
return true;
|
||||||
// return true;
|
|
||||||
|
|
||||||
Packet outp(peer->address(),RR->identity.address(),Packet::VERB_OK);
|
Packet outp(peer->address(),RR->identity.address(),Packet::VERB_OK);
|
||||||
outp.append((unsigned char)Packet::VERB_WHOIS);
|
outp.append((unsigned char)Packet::VERB_WHOIS);
|
||||||
|
|
|
@ -901,7 +901,7 @@ public:
|
||||||
* node reachability. Since they're signed any node can verify that
|
* node reachability. Since they're signed any node can verify that
|
||||||
* the originating node approves of their content.
|
* the originating node approves of their content.
|
||||||
*/
|
*/
|
||||||
VERB_LOCATOR = 0x16,
|
VERB_SET_LOCATOR = 0x16,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of peers this node will relay traffic to/from:
|
* A list of peers this node will relay traffic to/from:
|
||||||
|
|
Loading…
Add table
Reference in a new issue