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>
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.
23typedef 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;
29typedef 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;
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 }
63void nmsg__base__ncap__init
65size_t nmsg__base__ncap__get_packed_size
67size_t nmsg__base__ncap__pack
70size_t nmsg__base__ncap__pack_to_buffer
72 ProtobufCBuffer *buffer);
74 nmsg__base__ncap__unpack
75 (ProtobufCAllocator *allocator,
78void nmsg__base__ncap__free_unpacked
80 ProtobufCAllocator *allocator);
83typedef void (*Nmsg__Base__Ncap_Closure)
92extern const ProtobufCMessageDescriptor nmsg__base__ncap__descriptor;
93extern const ProtobufCEnumDescriptor nmsg__base__ncap__ncap_type__descriptor;
94extern const ProtobufCEnumDescriptor nmsg__base__ncap__ncap_legacy_type__descriptor;