nmsg 1.1.2
dnsobs.pb-c.h
1/* Generated by the protocol buffer compiler. DO NOT EDIT! */
2/* Generated from: nmsg/base/dnsobs.proto */
3
4#ifndef PROTOBUF_C_nmsg_2fbase_2fdnsobs_2eproto__INCLUDED
5#define PROTOBUF_C_nmsg_2fbase_2fdnsobs_2eproto__INCLUDED
6
7#include <protobuf-c/protobuf-c.h>
8
9PROTOBUF_C__BEGIN_DECLS
10
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.
15#endif
16
17
19
20
21/* --- enums --- */
22
23
24/* --- messages --- */
25
27{
28 ProtobufCMessage base;
29 /*
30 * epoch seconds
31 */
32 uint64_t time;
33 ProtobufCBinaryData response_ip;
34 ProtobufCBinaryData qname;
35 uint32_t qtype;
36 /*
37 *usually IN (1), but not necessarily
38 */
39 uint32_t qclass;
40 /*
41 * NOERROR, NXDOMAIN, FORMERR, SERVFAIL + TIMEOUT
42 */
43 uint32_t rcode;
44 /*
45 * defanged DNS response data
46 */
47 protobuf_c_boolean has_response;
48 ProtobufCBinaryData response;
49 /*
50 * From dnstap if available
51 */
52 protobuf_c_boolean has_query_zone;
53 ProtobufCBinaryData query_zone;
54 /*
55 * sensor-provided geographic context
56 */
57 protobuf_c_boolean has_geoid;
58 ProtobufCBinaryData geoid;
59 /*
60 * sensor-provided randomized NS identifier
61 */
62 protobuf_c_boolean has_sensor_id;
63 uint32_t sensor_id;
64};
65#define NMSG__BASE__DNS_OBS__INIT \
66 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__dns_obs__descriptor) \
67, 0, {0,NULL}, {0,NULL}, 0, 0, 0, 0, {0,NULL}, 0, {0,NULL}, 0, {0,NULL}, 0, 0 }
68
69
70/* Nmsg__Base__DnsObs methods */
71void nmsg__base__dns_obs__init
72 (Nmsg__Base__DnsObs *message);
73size_t nmsg__base__dns_obs__get_packed_size
74 (const Nmsg__Base__DnsObs *message);
75size_t nmsg__base__dns_obs__pack
76 (const Nmsg__Base__DnsObs *message,
77 uint8_t *out);
78size_t nmsg__base__dns_obs__pack_to_buffer
79 (const Nmsg__Base__DnsObs *message,
80 ProtobufCBuffer *buffer);
82 nmsg__base__dns_obs__unpack
83 (ProtobufCAllocator *allocator,
84 size_t len,
85 const uint8_t *data);
86void nmsg__base__dns_obs__free_unpacked
87 (Nmsg__Base__DnsObs *message,
88 ProtobufCAllocator *allocator);
89/* --- per-message closures --- */
90
91typedef void (*Nmsg__Base__DnsObs_Closure)
92 (const Nmsg__Base__DnsObs *message,
93 void *closure_data);
94
95/* --- services --- */
96
97
98/* --- descriptors --- */
99
100extern const ProtobufCMessageDescriptor nmsg__base__dns_obs__descriptor;
101
102PROTOBUF_C__END_DECLS
103
104
105#endif /* PROTOBUF_C_nmsg_2fbase_2fdnsobs_2eproto__INCLUDED */