EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
ip4.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: ip4.proto */
3 
4 #ifndef PROTOBUF_C_ip4_2eproto__INCLUDED
5 #define PROTOBUF_C_ip4_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 
17 typedef struct Ip4__Ip4Schema Ip4__Ip4Schema;
18 
19 /* --- enums --- */
20 
21 /* --- messages --- */
22 
24  ProtobufCMessage base;
25  /*
26  * Packet id
27  */
28  char *id;
29  /*
30  * Packet source address
31  */
32  char *ip_src;
33  /*
34  * Packet dest address
35  */
36  char *ip_dst;
37  /*
38  * Packet header length
39  */
40  uint32_t ip_hl;
41  /*
42  * Packet version
43  */
44  uint32_t ip_v;
45  /*
46  * Packet type of service
47  */
48  uint32_t ip_tos;
49  /*
50  * Packet total length
51  */
52  uint32_t ip_len;
53  /*
54  * Packet identification
55  */
56  uint32_t ip_id;
57  /*
58  * Packet fragment offset field
59  */
60  uint32_t ip_off;
61  /*
62  * Packet time to live
63  */
64  uint32_t ip_ttl;
65  /*
66  * Packet protocol
67  */
68  uint32_t ip_p;
69  /*
70  * Packet checksum
71  */
72  uint32_t ip_sum;
73 };
74 #define IP4__IP4_SCHEMA__INIT \
75  { \
76  PROTOBUF_C_MESSAGE_INIT(&ip4__ip4_schema__descriptor) \
77  , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, \
78  (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, 0, 0, 0 \
79  }
80 
81 /* Ip4__Ip4Schema methods */
84 size_t ip4__ip4_schema__pack(const Ip4__Ip4Schema *message, uint8_t *out);
86  ProtobufCBuffer *buffer);
87 Ip4__Ip4Schema *ip4__ip4_schema__unpack(ProtobufCAllocator *allocator,
88  size_t len, const uint8_t *data);
90  ProtobufCAllocator *allocator);
91 /* --- per-message closures --- */
92 
93 typedef void (*Ip4__Ip4Schema_Closure)(const Ip4__Ip4Schema *message,
94  void *closure_data);
95 
96 /* --- services --- */
97 
98 /* --- descriptors --- */
99 
100 extern const ProtobufCMessageDescriptor ip4__ip4_schema__descriptor;
101 
102 PROTOBUF_C__END_DECLS
103 
104 #endif /* PROTOBUF_C_ip4_2eproto__INCLUDED */
void ip4__ip4_schema__init(Ip4__Ip4Schema *message)
Definition: ip4.pb-c.c:10
size_t ip4__ip4_schema__get_packed_size(const Ip4__Ip4Schema *message)
Definition: ip4.pb-c.c:14
size_t ip4__ip4_schema__pack_to_buffer(const Ip4__Ip4Schema *message, ProtobufCBuffer *buffer)
Definition: ip4.pb-c.c:23
void ip4__ip4_schema__free_unpacked(Ip4__Ip4Schema *message, ProtobufCAllocator *allocator)
Definition: ip4.pb-c.c:34
Ip4__Ip4Schema * ip4__ip4_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: ip4.pb-c.c:29
void(* Ip4__Ip4Schema_Closure)(const Ip4__Ip4Schema *message, void *closure_data)
Definition: ip4.pb-c.h:93
const ProtobufCMessageDescriptor ip4__ip4_schema__descriptor
Definition: ip4.pb-c.c:134
size_t ip4__ip4_schema__pack(const Ip4__Ip4Schema *message, uint8_t *out)
Definition: ip4.pb-c.c:19
Definition: ip4.pb-c.h:23
uint32_t ip_v
Definition: ip4.pb-c.h:44
char * id
Definition: ip4.pb-c.h:28
char * ip_src
Definition: ip4.pb-c.h:32
uint32_t ip_ttl
Definition: ip4.pb-c.h:64
uint32_t ip_sum
Definition: ip4.pb-c.h:72
ProtobufCMessage base
Definition: ip4.pb-c.h:24
uint32_t ip_tos
Definition: ip4.pb-c.h:48
uint32_t ip_hl
Definition: ip4.pb-c.h:40
uint32_t ip_p
Definition: ip4.pb-c.h:68
uint32_t ip_len
Definition: ip4.pb-c.h:52
uint32_t ip_id
Definition: ip4.pb-c.h:56
char * ip_dst
Definition: ip4.pb-c.h:36
uint32_t ip_off
Definition: ip4.pb-c.h:60