Add some additional detail to the peer record in CAPI and JSON control plane.
This commit is contained in:
parent
91ca238163
commit
d2503172d8
4 changed files with 32 additions and 10 deletions
|
@ -177,6 +177,8 @@ static void _jsonAppend(std::string &buf,const ZT1_Peer *peer)
|
|||
Utils::snprintf(json,sizeof(json),
|
||||
"{"
|
||||
"\"address\": \"%.10llx\","
|
||||
"\"lastUnicastFrame\": %llu,"
|
||||
"\"lastMulticastFrame\": %llu,"
|
||||
"\"versionMajor\": %d,"
|
||||
"\"versionMinor\": %d,"
|
||||
"\"versionRev\": %d,"
|
||||
|
@ -186,6 +188,8 @@ static void _jsonAppend(std::string &buf,const ZT1_Peer *peer)
|
|||
"\"paths\": %s"
|
||||
"}",
|
||||
peer->address,
|
||||
peer->lastUnicastFrame,
|
||||
peer->lastMulticastFrame,
|
||||
peer->versionMajor,
|
||||
peer->versionMinor,
|
||||
peer->versionRev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue