Skip to content

Commit

Permalink
Merge pull request #3 from neilcook/keyvalue
Browse files Browse the repository at this point in the history
Add key-value metadata fields
  • Loading branch information
Habbie authored Oct 14, 2021
2 parents b90c182 + f4a48aa commit 0019977
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 @@ -128,6 +128,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 0019977

Please sign in to comment.