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 1003001 < 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__Ncap__NcapType {
24 NMSG__BASE__NCAP__NCAP_TYPE__IPV4 = 0,
25 NMSG__BASE__NCAP__NCAP_TYPE__IPV6 = 1,
26 NMSG__BASE__NCAP__NCAP_TYPE__Legacy = 2
27 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__NCAP__NCAP_TYPE)
28 } Nmsg__Base__Ncap__NcapType;
29 typedef enum _Nmsg__Base__Ncap__NcapLegacyType {
30 NMSG__BASE__NCAP__NCAP_LEGACY_TYPE__UDP = 0,
31 NMSG__BASE__NCAP__NCAP_LEGACY_TYPE__TCP = 1,
32 NMSG__BASE__NCAP__NCAP_LEGACY_TYPE__ICMP = 2
33 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__NCAP__NCAP_LEGACY_TYPE)
34 } Nmsg__Base__Ncap__NcapLegacyType;
38 struct _Nmsg__Base__Ncap
40 ProtobufCMessage base;
41 Nmsg__Base__Ncap__NcapType type;
42 ProtobufCBinaryData payload;
46 protobuf_c_boolean has_ltype;
47 Nmsg__Base__Ncap__NcapLegacyType ltype;
48 protobuf_c_boolean has_srcip;
49 ProtobufCBinaryData srcip;
50 protobuf_c_boolean has_dstip;
51 ProtobufCBinaryData dstip;
52 protobuf_c_boolean has_lint0;
54 protobuf_c_boolean has_lint1;
57 #define NMSG__BASE__NCAP__INIT \ 58 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__ncap__descriptor) \ 59 , NMSG__BASE__NCAP__NCAP_TYPE__IPV4, {0,NULL}, 0, NMSG__BASE__NCAP__NCAP_LEGACY_TYPE__UDP, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, 0 } 63 void nmsg__base__ncap__init
64 (Nmsg__Base__Ncap *message);
65 size_t nmsg__base__ncap__get_packed_size
66 (
const Nmsg__Base__Ncap *message);
67 size_t nmsg__base__ncap__pack
68 (
const Nmsg__Base__Ncap *message,
70 size_t nmsg__base__ncap__pack_to_buffer
71 (
const Nmsg__Base__Ncap *message,
72 ProtobufCBuffer *buffer);
74 nmsg__base__ncap__unpack
75 (ProtobufCAllocator *allocator,
78 void nmsg__base__ncap__free_unpacked
79 (Nmsg__Base__Ncap *message,
80 ProtobufCAllocator *allocator);
83 typedef void (*Nmsg__Base__Ncap_Closure)
84 (
const Nmsg__Base__Ncap *message,
92 extern const ProtobufCMessageDescriptor nmsg__base__ncap__descriptor;
93 extern const ProtobufCEnumDescriptor nmsg__base__ncap__ncap_type__descriptor;
94 extern const ProtobufCEnumDescriptor nmsg__base__ncap__ncap_legacy_type__descriptor;