EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
icmp6.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: icmp6.proto */
3 
4 #ifndef PROTOBUF_C_icmp6_2eproto__INCLUDED
5 #define PROTOBUF_C_icmp6_2eproto__INCLUDED
6 
7 #include <protobuf-c/protobuf-c.h>
8 
9 PROTOBUF_C__BEGIN_DECLS
10 
11 #if PROTOBUF_C_VERSION_NUMBER < 1003000
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.
15 #endif
16 
18 
19 /* --- enums --- */
20 
21 /* --- messages --- */
22 
24  ProtobufCMessage base;
25  /*
26  * Packet id
27  */
28  char *id;
29  /*
30  * Packet type field
31  */
32  uint32_t icmp6_type;
33  /*
34  * Packet code field
35  */
36  uint32_t icmp6_code;
37  /*
38  * Packet checksum field
39  */
40  uint32_t icmp6_cksum;
41  /*
42  * Packet type-specific field
43  */
44  uint32_t icmp6_un_data32;
45 };
46 #define ICMP6__ICMP6_SCHEMA__INIT \
47  { \
48  PROTOBUF_C_MESSAGE_INIT(&icmp6__icmp6_schema__descriptor) \
49  , (char *)protobuf_c_empty_string, 0, 0, 0, 0 \
50  }
51 
52 /* Icmp6__Icmp6Schema methods */
55 size_t icmp6__icmp6_schema__pack(const Icmp6__Icmp6Schema *message,
56  uint8_t *out);
58  ProtobufCBuffer *buffer);
59 Icmp6__Icmp6Schema *icmp6__icmp6_schema__unpack(ProtobufCAllocator *allocator,
60  size_t len,
61  const uint8_t *data);
63  ProtobufCAllocator *allocator);
64 /* --- per-message closures --- */
65 
66 typedef void (*Icmp6__Icmp6Schema_Closure)(const Icmp6__Icmp6Schema *message,
67  void *closure_data);
68 
69 /* --- services --- */
70 
71 /* --- descriptors --- */
72 
73 extern const ProtobufCMessageDescriptor icmp6__icmp6_schema__descriptor;
74 
75 PROTOBUF_C__END_DECLS
76 
77 #endif /* PROTOBUF_C_icmp6_2eproto__INCLUDED */
size_t icmp6__icmp6_schema__pack(const Icmp6__Icmp6Schema *message, uint8_t *out)
Definition: icmp6.pb-c.c:19
void(* Icmp6__Icmp6Schema_Closure)(const Icmp6__Icmp6Schema *message, void *closure_data)
Definition: icmp6.pb-c.h:66
void icmp6__icmp6_schema__free_unpacked(Icmp6__Icmp6Schema *message, ProtobufCAllocator *allocator)
Definition: icmp6.pb-c.c:36
size_t icmp6__icmp6_schema__get_packed_size(const Icmp6__Icmp6Schema *message)
Definition: icmp6.pb-c.c:14
Icmp6__Icmp6Schema * icmp6__icmp6_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: icmp6.pb-c.c:30
size_t icmp6__icmp6_schema__pack_to_buffer(const Icmp6__Icmp6Schema *message, ProtobufCBuffer *buffer)
Definition: icmp6.pb-c.c:24
const ProtobufCMessageDescriptor icmp6__icmp6_schema__descriptor
Definition: icmp6.pb-c.c:88
void icmp6__icmp6_schema__init(Icmp6__Icmp6Schema *message)
Definition: icmp6.pb-c.c:10
Definition: icmp6.pb-c.h:23
ProtobufCMessage base
Definition: icmp6.pb-c.h:24
uint32_t icmp6_type
Definition: icmp6.pb-c.h:32
char * id
Definition: icmp6.pb-c.h:28
uint32_t icmp6_code
Definition: icmp6.pb-c.h:36
uint32_t icmp6_cksum
Definition: icmp6.pb-c.h:40
uint32_t icmp6_un_data32
Definition: icmp6.pb-c.h:44