4#ifndef PROTOBUF_C_nmsg_2fbase_2fdnstap_2eproto__INCLUDED
5#define PROTOBUF_C_nmsg_2fbase_2fdnstap_2eproto__INCLUDED
7#include <protobuf-c/protobuf-c.h>
11#if PROTOBUF_C_VERSION_NUMBER < 1000000
12# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
13#elif 1004001 < PROTOBUF_C_MIN_COMPILER_VERSION
14# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
27typedef enum _Dnstap__Dnstap__Type {
28 DNSTAP__DNSTAP__TYPE__MESSAGE = 1
29 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(DNSTAP__DNSTAP__TYPE)
30} Dnstap__Dnstap__Type;
31typedef enum _Dnstap__Message__Type {
37 DNSTAP__MESSAGE__TYPE__AUTH_QUERY = 1,
43 DNSTAP__MESSAGE__TYPE__AUTH_RESPONSE = 2,
50 DNSTAP__MESSAGE__TYPE__RESOLVER_QUERY = 3,
56 DNSTAP__MESSAGE__TYPE__RESOLVER_RESPONSE = 4,
66 DNSTAP__MESSAGE__TYPE__CLIENT_QUERY = 5,
72 DNSTAP__MESSAGE__TYPE__CLIENT_RESPONSE = 6,
79 DNSTAP__MESSAGE__TYPE__FORWARDER_QUERY = 7,
85 DNSTAP__MESSAGE__TYPE__FORWARDER_RESPONSE = 8,
90 DNSTAP__MESSAGE__TYPE__STUB_QUERY = 9,
95 DNSTAP__MESSAGE__TYPE__STUB_RESPONSE = 10,
100 DNSTAP__MESSAGE__TYPE__TOOL_QUERY = 11,
105 DNSTAP__MESSAGE__TYPE__TOOL_RESPONSE = 12
106 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(DNSTAP__MESSAGE__TYPE)
107} Dnstap__Message__Type;
112typedef enum _Dnstap__SocketFamily {
116 DNSTAP__SOCKET_FAMILY__INET = 1,
120 DNSTAP__SOCKET_FAMILY__INET6 = 2
121 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(DNSTAP__SOCKET_FAMILY)
122} Dnstap__SocketFamily;
127typedef enum _Dnstap__SocketProtocol {
131 DNSTAP__SOCKET_PROTOCOL__UDP = 1,
135 DNSTAP__SOCKET_PROTOCOL__TCP = 2
136 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(DNSTAP__SOCKET_PROTOCOL)
137} Dnstap__SocketProtocol;
149 ProtobufCMessage base;
156 protobuf_c_boolean has_identity;
157 ProtobufCBinaryData identity;
164 protobuf_c_boolean has_version;
165 ProtobufCBinaryData version;
171 protobuf_c_boolean has_extra;
172 ProtobufCBinaryData extra;
173 Dnstap__Dnstap__Type type;
179#define DNSTAP__DNSTAP__INIT \
180 { PROTOBUF_C_MESSAGE_INIT (&dnstap__dnstap__descriptor) \
181, 0, {0,NULL}, 0, {0,NULL}, 0, {0,NULL}, DNSTAP__DNSTAP__TYPE__MESSAGE, NULL }
191 ProtobufCMessage base;
195 Dnstap__Message__Type type;
199 protobuf_c_boolean has_socket_family;
200 Dnstap__SocketFamily socket_family;
204 protobuf_c_boolean has_socket_protocol;
205 Dnstap__SocketProtocol socket_protocol;
211 protobuf_c_boolean has_query_address;
212 ProtobufCBinaryData query_address;
218 protobuf_c_boolean has_response_address;
219 ProtobufCBinaryData response_address;
224 protobuf_c_boolean has_query_port;
230 protobuf_c_boolean has_response_port;
231 uint32_t response_port;
237 protobuf_c_boolean has_query_time_sec;
238 uint64_t query_time_sec;
243 protobuf_c_boolean has_query_time_nsec;
244 uint32_t query_time_nsec;
248 protobuf_c_boolean has_query_message;
249 ProtobufCBinaryData query_message;
254 protobuf_c_boolean has_query_zone;
255 ProtobufCBinaryData query_zone;
262 protobuf_c_boolean has_response_time_sec;
263 uint64_t response_time_sec;
268 protobuf_c_boolean has_response_time_nsec;
269 uint32_t response_time_nsec;
273 protobuf_c_boolean has_response_message;
274 ProtobufCBinaryData response_message;
276#define DNSTAP__MESSAGE__INIT \
277 { PROTOBUF_C_MESSAGE_INIT (&dnstap__message__descriptor) \
278, DNSTAP__MESSAGE__TYPE__AUTH_QUERY, 0, DNSTAP__SOCKET_FAMILY__INET, 0, DNSTAP__SOCKET_PROTOCOL__UDP, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, 0, 0, 0, 0, 0, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, 0, 0, {0,NULL} }
282void dnstap__dnstap__init
284size_t dnstap__dnstap__get_packed_size
286size_t dnstap__dnstap__pack
289size_t dnstap__dnstap__pack_to_buffer
291 ProtobufCBuffer *buffer);
293 dnstap__dnstap__unpack
294 (ProtobufCAllocator *allocator,
296 const uint8_t *data);
297void dnstap__dnstap__free_unpacked
299 ProtobufCAllocator *allocator);
301void dnstap__message__init
303size_t dnstap__message__get_packed_size
305size_t dnstap__message__pack
308size_t dnstap__message__pack_to_buffer
310 ProtobufCBuffer *buffer);
312 dnstap__message__unpack
313 (ProtobufCAllocator *allocator,
315 const uint8_t *data);
316void dnstap__message__free_unpacked
318 ProtobufCAllocator *allocator);
321typedef void (*Dnstap__Dnstap_Closure)
324typedef void (*Dnstap__Message_Closure)
333extern const ProtobufCEnumDescriptor dnstap__socket_family__descriptor;
334extern const ProtobufCEnumDescriptor dnstap__socket_protocol__descriptor;
335extern const ProtobufCMessageDescriptor dnstap__dnstap__descriptor;
336extern const ProtobufCEnumDescriptor dnstap__dnstap__type__descriptor;
337extern const ProtobufCMessageDescriptor dnstap__message__descriptor;
338extern const ProtobufCEnumDescriptor dnstap__message__type__descriptor;