4 #ifndef PROTOBUF_C_nmsg_2fbase_2fncap_2eproto__INCLUDED
5 #define PROTOBUF_C_nmsg_2fbase_2fncap_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 1000001 < 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__Ncap Nmsg__Base__Ncap;
23 typedef enum _Nmsg__Base__NcapType {
24 NMSG__BASE__NCAP_TYPE__IPV4 = 0,
25 NMSG__BASE__NCAP_TYPE__IPV6 = 1,
26 NMSG__BASE__NCAP_TYPE__Legacy = 2
27 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__NCAP_TYPE)
28 } Nmsg__Base__NcapType;
29 typedef enum _Nmsg__Base__NcapLegacyType {
30 NMSG__BASE__NCAP_LEGACY_TYPE__UDP = 0,
31 NMSG__BASE__NCAP_LEGACY_TYPE__TCP = 1,
32 NMSG__BASE__NCAP_LEGACY_TYPE__ICMP = 2
33 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__NCAP_LEGACY_TYPE)
34 } Nmsg__Base__NcapLegacyType;
38 struct _Nmsg__Base__Ncap
40 ProtobufCMessage base;
41 Nmsg__Base__NcapType type;
42 ProtobufCBinaryData payload;
43 protobuf_c_boolean has_ltype;
44 Nmsg__Base__NcapLegacyType ltype;
45 protobuf_c_boolean has_srcip;
46 ProtobufCBinaryData srcip;
47 protobuf_c_boolean has_dstip;
48 ProtobufCBinaryData dstip;
49 protobuf_c_boolean has_lint0;
51 protobuf_c_boolean has_lint1;
54 #define NMSG__BASE__NCAP__INIT \
55 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__ncap__descriptor) \
56 , 0, {0,NULL}, 0,0, 0,{0,NULL}, 0,{0,NULL}, 0,0, 0,0 }
60 void nmsg__base__ncap__init
61 (Nmsg__Base__Ncap *message);
62 size_t nmsg__base__ncap__get_packed_size
63 (
const Nmsg__Base__Ncap *message);
64 size_t nmsg__base__ncap__pack
65 (
const Nmsg__Base__Ncap *message,
67 size_t nmsg__base__ncap__pack_to_buffer
68 (
const Nmsg__Base__Ncap *message,
69 ProtobufCBuffer *buffer);
71 nmsg__base__ncap__unpack
72 (ProtobufCAllocator *allocator,
75 void nmsg__base__ncap__free_unpacked
76 (Nmsg__Base__Ncap *message,
77 ProtobufCAllocator *allocator);
80 typedef void (*Nmsg__Base__Ncap_Closure)
81 (
const Nmsg__Base__Ncap *message,
89 extern const ProtobufCEnumDescriptor nmsg__base__ncap_type__descriptor;
90 extern const ProtobufCEnumDescriptor nmsg__base__ncap_legacy_type__descriptor;
91 extern const ProtobufCMessageDescriptor nmsg__base__ncap__descriptor;