]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/dnsmessage.proto
recursor: lua ffi, add support for setting arbitrary key-value metadata
[thirdparty/pdns.git] / pdns / dnsmessage.proto
index f6ba17ccf5adf7fc0b0fde9a0587211aec068d31..972bd8de38f23d307c757f3e8b77022a26e10fc3 100644 (file)
@@ -115,6 +115,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 {