4 #ifndef PROTOBUF_C_nmsg_2fbase_2fhttp_2eproto__INCLUDED
5 #define PROTOBUF_C_nmsg_2fbase_2fhttp_2eproto__INCLUDED
7 #include <protobuf-c/protobuf-c.h>
9 PROTOBUF_C__BEGIN_DECLS
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 1003003 < 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.
18 typedef struct _Nmsg__Base__Http Nmsg__Base__Http;
23 typedef enum _Nmsg__Base__Http__HttpType {
24 NMSG__BASE__HTTP__HTTP_TYPE__unknown = 0,
25 NMSG__BASE__HTTP__HTTP_TYPE__sinkhole = 1
26 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__HTTP__HTTP_TYPE)
27 } Nmsg__Base__Http__HttpType;
31 struct _Nmsg__Base__Http
33 ProtobufCMessage base;
34 Nmsg__Base__Http__HttpType type;
35 protobuf_c_boolean has_srcip;
36 ProtobufCBinaryData srcip;
37 protobuf_c_boolean has_srchost;
38 ProtobufCBinaryData srchost;
39 protobuf_c_boolean has_srcport;
41 protobuf_c_boolean has_dstip;
42 ProtobufCBinaryData dstip;
43 protobuf_c_boolean has_dstport;
45 protobuf_c_boolean has_request;
46 ProtobufCBinaryData request;
47 protobuf_c_boolean has_p0f_genre;
48 ProtobufCBinaryData p0f_genre;
49 protobuf_c_boolean has_p0f_detail;
50 ProtobufCBinaryData p0f_detail;
51 protobuf_c_boolean has_p0f_dist;
53 protobuf_c_boolean has_p0f_link;
54 ProtobufCBinaryData p0f_link;
55 protobuf_c_boolean has_p0f_tos;
56 ProtobufCBinaryData p0f_tos;
57 protobuf_c_boolean has_p0f_fw;
59 protobuf_c_boolean has_p0f_nat;
61 protobuf_c_boolean has_p0f_real;
63 protobuf_c_boolean has_p0f_score;
65 protobuf_c_boolean has_p0f_mflags;
67 protobuf_c_boolean has_p0f_uptime;
70 #define NMSG__BASE__HTTP__INIT \
71 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__http__descriptor) \
72 , NMSG__BASE__HTTP__HTTP_TYPE__unknown, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, {0,NULL}, 0, 0, 0, {0,NULL}, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
76 void nmsg__base__http__init
77 (Nmsg__Base__Http *message);
78 size_t nmsg__base__http__get_packed_size
79 (
const Nmsg__Base__Http *message);
80 size_t nmsg__base__http__pack
81 (
const Nmsg__Base__Http *message,
83 size_t nmsg__base__http__pack_to_buffer
84 (
const Nmsg__Base__Http *message,
85 ProtobufCBuffer *buffer);
87 nmsg__base__http__unpack
88 (ProtobufCAllocator *allocator,
91 void nmsg__base__http__free_unpacked
92 (Nmsg__Base__Http *message,
93 ProtobufCAllocator *allocator);
96 typedef void (*Nmsg__Base__Http_Closure)
97 (
const Nmsg__Base__Http *message,
105 extern const ProtobufCMessageDescriptor nmsg__base__http__descriptor;
106 extern const ProtobufCEnumDescriptor nmsg__base__http__http_type__descriptor;
108 PROTOBUF_C__END_DECLS