Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ping.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ message Ping {
// unreachable Nodes can be retired. MUST NOT contain more entries
// than the fleet size (dozens); the Node SHOULD discard or
// truncate a Ping whose canaries map exceeds that bound to prevent
// unbounded map allocation per session.
// unbounded map allocation per session. When producing keys from
// Peer.ip (four raw bytes, network byte order), the client MUST
// convert each byte to its decimal representation and join with
// dots before inserting into this map.
map<string, uint32> canaries = 2;
}
2 changes: 2 additions & 0 deletions pong.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ message Property {
// Node nears expiry.
message Peer {
// Public IPv4 of the peer as four raw bytes (network byte order).
// Clients MUST convert this to dotted-decimal form
// ("203.0.113.7") when using the address as a Ping.canaries key.
bytes ip = 1;

// TCP port on which the peer accepts client connections. Valid
Expand Down