From aa4d247307adf2b3016532a78e5ae2f71a1b9b0c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 17 Jan 2024 16:48:42 -0600 Subject: [PATCH] blah Signed-off-by: Jeff Carr --- dnsmessage/widget.proto | 82 ----------------------------------------- 1 file changed, 82 deletions(-) delete mode 100644 dnsmessage/widget.proto diff --git a/dnsmessage/widget.proto b/dnsmessage/widget.proto deleted file mode 100644 index 8f90f9f..0000000 --- a/dnsmessage/widget.proto +++ /dev/null @@ -1,82 +0,0 @@ -/* - */ -syntax = "proto2"; - -message Widget { - enum Type { - DNSQueryType = 1; // Query received by the service - DNSResponseType = 2; // Response returned by the service - DNSOutgoingQueryType = 3; // Query sent out by the service to a remote server - DNSIncomingResponseType = 4; // Response returned by the remote server - } - enum SocketFamily { - INET = 1; // IPv4 (RFC 791) - INET6 = 2; // IPv6 (RFC 2460) - } - enum SocketProtocol { - UDP = 1; // User Datagram Protocol (RFC 768) - TCP = 2; // Transmission Control Protocol (RFC 793) - } - enum PolicyType { - UNKNOWN = 1; // No RPZ policy applied, or unknown type - QNAME = 2; // Policy matched on the QName - CLIENTIP = 3; // Policy matched on the client IP - RESPONSEIP = 4; // Policy matched on one of the IPs contained in the answer - NSDNAME = 5; // Policy matched on the name of one nameserver involved - NSIP = 6; // Policy matched on the IP of one nameserver involved - } - required Type type = 1; // Type of event - optional bytes messageId = 2; // UUID, shared by the query and the response - optional bytes serverIdentity = 3; // ID of the server emitting the protobuf message - optional SocketFamily socketFamily = 4; - optional SocketProtocol socketProtocol = 5; - optional bytes from = 6; // DNS requestor (client) as 4 (IPv4) or 16 (IPv6) raw bytes in network byte order - optional bytes to = 7; // DNS responder (server) as 4 (IPv4) or 16 (IPv6) raw bytes in network byte order - optional uint64 inBytes = 8; // Size of the query or response on the wire - optional uint32 timeSec = 9; // Time of message reception (seconds since epoch) - optional uint32 timeUsec = 10; // Time of message reception (additional micro-seconds) - optional uint32 id = 11; // ID of the query/response as found in the DNS header - - message DNSQuestion { - optional string qName = 1; // Fully qualified DNS name (with trailing dot) - optional uint32 qType = 2; // https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4 - optional uint32 qClass = 3; // Typically 1 (IN), see https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-2 - } - optional DNSQuestion question = 12; // DNS query received from client - - message DNSResponse { - // See exportTypes in https://docs.powerdns.com/recursor/lua-config/protobuf.html#protobufServer - // for the list of supported resource record types. - message DNSRR { - optional string name = 1; // Fully qualified DNS name (with trailing dot) - optional uint32 type = 2; // https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4 - optional uint32 class = 3; // Typically 1 (IN), see https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-2 - optional uint32 ttl = 4; // TTL in seconds - optional bytes rdata = 5; // raw address bytes in network byte order for A & AAAA; text representation for others, with fully qualified (trailing dot) domain names - optional bool udr = 6; // True if this is the first time this RR has been seen for this question - } - optional uint32 rcode = 1; // DNS Response code, or 65536 for a network error including a timeout - repeated DNSRR rrs = 2; // DNS resource records in response - optional string appliedPolicy = 3; // Filtering policy (RPZ or Lua) applied - repeated string tags = 4; // Additional tags applied - optional uint32 queryTimeSec = 5; // Time of the corresponding query reception (seconds since epoch) - optional uint32 queryTimeUsec = 6; // Time of the corresponding query reception (additional micro-seconds) - optional PolicyType appliedPolicyType = 7; // Type of the filtering policy (RPZ or Lua) applied - optional string appliedPolicyTrigger = 8; // The RPZ trigger - optional string appliedPolicyHit = 9; // The value (qname or IP) that caused the hit - } - - optional DNSResponse response = 13; - optional bytes originalRequestorSubnet = 14; // EDNS Client Subnet value (4 or 16 raw bytes in network byte order) - optional string requestorId = 15; // Username of the requestor - optional bytes initialRequestId = 16; // UUID of the incoming query that initiated this outgoing query or incoming response - optional bytes deviceId = 17; // Device ID of the requestor (could be mac address IP address or e.g. IMEI, format implementation dependent) - optional bool newlyObservedDomain = 18; // True if the domain has not been seen before - 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 PBDNSMessageList { - repeated PBDNSMessage msg = 1; -}