5 #ifndef PROTOBUF_C__NO_DEPRECATED
6 #define PROTOBUF_C__NO_DEPRECATED
9 #include "nmsg/base/http.pb-c.h"
10 void nmsg__base__http__init
11 (Nmsg__Base__Http *message)
13 static Nmsg__Base__Http init_value = NMSG__BASE__HTTP__INIT;
14 *message = init_value;
16 size_t nmsg__base__http__get_packed_size
17 (
const Nmsg__Base__Http *message)
19 assert(message->base.descriptor == &nmsg__base__http__descriptor);
20 return protobuf_c_message_get_packed_size ((
const ProtobufCMessage*)(message));
22 size_t nmsg__base__http__pack
23 (
const Nmsg__Base__Http *message,
26 assert(message->base.descriptor == &nmsg__base__http__descriptor);
27 return protobuf_c_message_pack ((
const ProtobufCMessage*)message, out);
29 size_t nmsg__base__http__pack_to_buffer
30 (
const Nmsg__Base__Http *message,
31 ProtobufCBuffer *buffer)
33 assert(message->base.descriptor == &nmsg__base__http__descriptor);
34 return protobuf_c_message_pack_to_buffer ((
const ProtobufCMessage*)message, buffer);
37 nmsg__base__http__unpack
38 (ProtobufCAllocator *allocator,
42 return (Nmsg__Base__Http *)
43 protobuf_c_message_unpack (&nmsg__base__http__descriptor,
44 allocator, len, data);
46 void nmsg__base__http__free_unpacked
47 (Nmsg__Base__Http *message,
48 ProtobufCAllocator *allocator)
50 assert(message->base.descriptor == &nmsg__base__http__descriptor);
51 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
53 static const ProtobufCFieldDescriptor nmsg__base__http__field_descriptors[18] =
58 PROTOBUF_C_LABEL_REQUIRED,
61 offsetof(Nmsg__Base__Http,
type),
62 &nmsg__base__http_type__descriptor,
70 PROTOBUF_C_LABEL_OPTIONAL,
71 PROTOBUF_C_TYPE_BYTES,
72 offsetof(Nmsg__Base__Http, has_srcip),
73 offsetof(Nmsg__Base__Http, srcip),
82 PROTOBUF_C_LABEL_OPTIONAL,
83 PROTOBUF_C_TYPE_BYTES,
84 offsetof(Nmsg__Base__Http, has_srchost),
85 offsetof(Nmsg__Base__Http, srchost),
94 PROTOBUF_C_LABEL_OPTIONAL,
95 PROTOBUF_C_TYPE_UINT32,
96 offsetof(Nmsg__Base__Http, has_srcport),
97 offsetof(Nmsg__Base__Http, srcport),
106 PROTOBUF_C_LABEL_OPTIONAL,
107 PROTOBUF_C_TYPE_BYTES,
108 offsetof(Nmsg__Base__Http, has_dstip),
109 offsetof(Nmsg__Base__Http, dstip),
118 PROTOBUF_C_LABEL_OPTIONAL,
119 PROTOBUF_C_TYPE_UINT32,
120 offsetof(Nmsg__Base__Http, has_dstport),
121 offsetof(Nmsg__Base__Http, dstport),
130 PROTOBUF_C_LABEL_OPTIONAL,
131 PROTOBUF_C_TYPE_BYTES,
132 offsetof(Nmsg__Base__Http, has_request),
133 offsetof(Nmsg__Base__Http, request),
142 PROTOBUF_C_LABEL_OPTIONAL,
143 PROTOBUF_C_TYPE_BYTES,
144 offsetof(Nmsg__Base__Http, has_p0f_genre),
145 offsetof(Nmsg__Base__Http, p0f_genre),
154 PROTOBUF_C_LABEL_OPTIONAL,
155 PROTOBUF_C_TYPE_BYTES,
156 offsetof(Nmsg__Base__Http, has_p0f_detail),
157 offsetof(Nmsg__Base__Http, p0f_detail),
166 PROTOBUF_C_LABEL_OPTIONAL,
167 PROTOBUF_C_TYPE_INT32,
168 offsetof(Nmsg__Base__Http, has_p0f_dist),
169 offsetof(Nmsg__Base__Http, p0f_dist),
178 PROTOBUF_C_LABEL_OPTIONAL,
179 PROTOBUF_C_TYPE_BYTES,
180 offsetof(Nmsg__Base__Http, has_p0f_link),
181 offsetof(Nmsg__Base__Http, p0f_link),
190 PROTOBUF_C_LABEL_OPTIONAL,
191 PROTOBUF_C_TYPE_BYTES,
192 offsetof(Nmsg__Base__Http, has_p0f_tos),
193 offsetof(Nmsg__Base__Http, p0f_tos),
202 PROTOBUF_C_LABEL_OPTIONAL,
203 PROTOBUF_C_TYPE_UINT32,
204 offsetof(Nmsg__Base__Http, has_p0f_fw),
205 offsetof(Nmsg__Base__Http, p0f_fw),
214 PROTOBUF_C_LABEL_OPTIONAL,
215 PROTOBUF_C_TYPE_UINT32,
216 offsetof(Nmsg__Base__Http, has_p0f_nat),
217 offsetof(Nmsg__Base__Http, p0f_nat),
226 PROTOBUF_C_LABEL_OPTIONAL,
227 PROTOBUF_C_TYPE_UINT32,
228 offsetof(Nmsg__Base__Http, has_p0f_real),
229 offsetof(Nmsg__Base__Http, p0f_real),
238 PROTOBUF_C_LABEL_OPTIONAL,
239 PROTOBUF_C_TYPE_INT32,
240 offsetof(Nmsg__Base__Http, has_p0f_score),
241 offsetof(Nmsg__Base__Http, p0f_score),
250 PROTOBUF_C_LABEL_OPTIONAL,
251 PROTOBUF_C_TYPE_UINT32,
252 offsetof(Nmsg__Base__Http, has_p0f_mflags),
253 offsetof(Nmsg__Base__Http, p0f_mflags),
262 PROTOBUF_C_LABEL_OPTIONAL,
263 PROTOBUF_C_TYPE_INT32,
264 offsetof(Nmsg__Base__Http, has_p0f_uptime),
265 offsetof(Nmsg__Base__Http, p0f_uptime),
272 static const unsigned nmsg__base__http__field_indices_by_name[] = {
292 static const ProtobufCIntRange nmsg__base__http__number_ranges[2 + 1] =
298 const ProtobufCMessageDescriptor nmsg__base__http__descriptor =
300 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
305 sizeof(Nmsg__Base__Http),
307 nmsg__base__http__field_descriptors,
308 nmsg__base__http__field_indices_by_name,
309 2, nmsg__base__http__number_ranges,
310 (ProtobufCMessageInit) nmsg__base__http__init,
313 const ProtobufCEnumValue nmsg__base__http_type__enum_values_by_number[2] =
315 {
"unknown",
"NMSG__BASE__HTTP_TYPE__unknown", 0 },
316 {
"sinkhole",
"NMSG__BASE__HTTP_TYPE__sinkhole", 1 },
318 static const ProtobufCIntRange nmsg__base__http_type__value_ranges[] = {
321 const ProtobufCEnumValueIndex nmsg__base__http_type__enum_values_by_name[2] =
326 const ProtobufCEnumDescriptor nmsg__base__http_type__descriptor =
328 PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
329 "nmsg.base.HttpType",
331 "Nmsg__Base__HttpType",
334 nmsg__base__http_type__enum_values_by_number,
336 nmsg__base__http_type__enum_values_by_name,
338 nmsg__base__http_type__value_ranges,
nmsg_msgmod_type type
Module type.