From f4a48aa91f6d67a3003dd2a7ef82ff8c06f2f3de Mon Sep 17 00:00:00 2001 From: Neil Cook Date: Tue, 25 May 2021 10:54:26 +0100 Subject: [PATCH] Add key-value metadata fields --- dnsmessage.proto | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dnsmessage.proto b/dnsmessage.proto index 66924f45..a3f4716f 100644 --- a/dnsmessage.proto +++ b/dnsmessage.proto @@ -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 {