EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
icmp4.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: icmp4.proto */
3 
4 #ifndef PROTOBUF_C_icmp4_2eproto__INCLUDED
5 #define PROTOBUF_C_icmp4_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 message type
31  */
32  uint32_t type;
33  /*
34  * Packet type sub-code
35  */
36  uint32_t code;
37  /*
38  * Packet checksum
39  */
40  uint32_t checksum;
41  /*
42  * Packet gateway address
43  */
44  uint32_t gateway;
45 };
46 #define ICMP4__ICMP4_SCHEMA__INIT \
47  { \
48  PROTOBUF_C_MESSAGE_INIT(&icmp4__icmp4_schema__descriptor) \
49  , (char *)protobuf_c_empty_string, 0, 0, 0, 0 \
50  }
51 
52 /* Icmp4__Icmp4Schema methods */
55 size_t icmp4__icmp4_schema__pack(const Icmp4__Icmp4Schema *message,
56  uint8_t *out);
58  ProtobufCBuffer *buffer);
59 Icmp4__Icmp4Schema *icmp4__icmp4_schema__unpack(ProtobufCAllocator *allocator,
60  size_t len,
61  const uint8_t *data);
63  ProtobufCAllocator *allocator);
64 /* --- per-message closures --- */
65 
66 typedef void (*Icmp4__Icmp4Schema_Closure)(const Icmp4__Icmp4Schema *message,
67  void *closure_data);
68 
69 /* --- services --- */
70 
71 /* --- descriptors --- */
72 
73 extern const ProtobufCMessageDescriptor icmp4__icmp4_schema__descriptor;
74 
75 PROTOBUF_C__END_DECLS
76 
77 #endif /* PROTOBUF_C_icmp4_2eproto__INCLUDED */
size_t icmp4__icmp4_schema__pack(const Icmp4__Icmp4Schema *message, uint8_t *out)
Definition: icmp4.pb-c.c:19
void icmp4__icmp4_schema__init(Icmp4__Icmp4Schema *message)
Definition: icmp4.pb-c.c:10
size_t icmp4__icmp4_schema__pack_to_buffer(const Icmp4__Icmp4Schema *message, ProtobufCBuffer *buffer)
Definition: icmp4.pb-c.c:24
size_t icmp4__icmp4_schema__get_packed_size(const Icmp4__Icmp4Schema *message)
Definition: icmp4.pb-c.c:14
void icmp4__icmp4_schema__free_unpacked(Icmp4__Icmp4Schema *message, ProtobufCAllocator *allocator)
Definition: icmp4.pb-c.c:36
const ProtobufCMessageDescriptor icmp4__icmp4_schema__descriptor
Definition: icmp4.pb-c.c:86
void(* Icmp4__Icmp4Schema_Closure)(const Icmp4__Icmp4Schema *message, void *closure_data)
Definition: icmp4.pb-c.h:66
Icmp4__Icmp4Schema * icmp4__icmp4_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: icmp4.pb-c.c:30
Definition: icmp4.pb-c.h:23
uint32_t type
Definition: icmp4.pb-c.h:32
char * id
Definition: icmp4.pb-c.h:28
uint32_t checksum
Definition: icmp4.pb-c.h:40
ProtobufCMessage base
Definition: icmp4.pb-c.h:24
uint32_t code
Definition: icmp4.pb-c.h:36
uint32_t gateway
Definition: icmp4.pb-c.h:44