Skip to content

Commit

Permalink
Add key-value metadata fields
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcook committed May 25, 2021
1 parent 3d6c53d commit f4a48aa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dnsmessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ message PBDNSMessage {
optional string deviceName = 19; // Device name of the requestor
optional uint32 fromPort = 20; // Source port of the DNS query (client)
optional uint32 toPort = 21; // Destination port of the DNS query (server)

message MetaValue {
repeated string stringVal = 1;
repeated int64 intVal = 2;
}

message Meta {
required string key = 1; // MUST be unique, so if you have multiple values they must be aggregated into on Meta
required MetaValue value = 2;
}
repeated Meta meta = 22; // Arbitrary meta-data - to be used in future rather than adding new fields all the time
}

message PBDNSMessageList {
Expand Down

0 comments on commit f4a48aa

Please sign in to comment.