EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
ip6.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: ip6.proto */
3 
4 #ifndef PROTOBUF_C_ip6_2eproto__INCLUDED
5 #define PROTOBUF_C_ip6_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 Ip6__Ip6Schema Ip6__Ip6Schema;
18 
19 /* --- enums --- */
20 
21 /* --- messages --- */
22 
24  ProtobufCMessage base;
25  /*
26  * Packet id
27  */
28  char *id;
29  /*
30  * Packet 4 bits version, 8 bits TC, 20 bits flow-ID
31  */
32  uint32_t ip6_un1_flow;
33  /*
34  * Packet payload length
35  */
36  uint32_t ip6_un1_plen;
37  /*
38  * Packet next header
39  */
40  uint32_t ip6_un1_nxt;
41  /*
42  * Packet hop limit
43  */
44  uint32_t ip6_un1_hlim;
45  /*
46  * Packet 4 bits version, top 4 bits tclass
47  */
48  uint32_t ip6_un2_vfc;
49  /*
50  * Packet source address
51  */
52  char *ip6_src;
53  /*
54  * Packet destination address
55  */
56  char *ip6_dst;
57 };
58 #define IP6__IP6_SCHEMA__INIT \
59  { \
60  PROTOBUF_C_MESSAGE_INIT(&ip6__ip6_schema__descriptor) \
61  , (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, \
62  (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string \
63  }
64 
65 /* Ip6__Ip6Schema methods */
68 size_t ip6__ip6_schema__pack(const Ip6__Ip6Schema *message, uint8_t *out);
70  ProtobufCBuffer *buffer);
71 Ip6__Ip6Schema *ip6__ip6_schema__unpack(ProtobufCAllocator *allocator,
72  size_t len, const uint8_t *data);
74  ProtobufCAllocator *allocator);
75 /* --- per-message closures --- */
76 
77 typedef void (*Ip6__Ip6Schema_Closure)(const Ip6__Ip6Schema *message,
78  void *closure_data);
79 
80 /* --- services --- */
81 
82 /* --- descriptors --- */
83 
84 extern const ProtobufCMessageDescriptor ip6__ip6_schema__descriptor;
85 
86 PROTOBUF_C__END_DECLS
87 
88 #endif /* PROTOBUF_C_ip6_2eproto__INCLUDED */
size_t ip6__ip6_schema__get_packed_size(const Ip6__Ip6Schema *message)
Definition: ip6.pb-c.c:14
void ip6__ip6_schema__init(Ip6__Ip6Schema *message)
Definition: ip6.pb-c.c:10
const ProtobufCMessageDescriptor ip6__ip6_schema__descriptor
Definition: ip6.pb-c.c:106
size_t ip6__ip6_schema__pack(const Ip6__Ip6Schema *message, uint8_t *out)
Definition: ip6.pb-c.c:19
void(* Ip6__Ip6Schema_Closure)(const Ip6__Ip6Schema *message, void *closure_data)
Definition: ip6.pb-c.h:77
Ip6__Ip6Schema * ip6__ip6_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: ip6.pb-c.c:29
size_t ip6__ip6_schema__pack_to_buffer(const Ip6__Ip6Schema *message, ProtobufCBuffer *buffer)
Definition: ip6.pb-c.c:23
void ip6__ip6_schema__free_unpacked(Ip6__Ip6Schema *message, ProtobufCAllocator *allocator)
Definition: ip6.pb-c.c:34
Definition: ip6.pb-c.h:23
ProtobufCMessage base
Definition: ip6.pb-c.h:24
uint32_t ip6_un2_vfc
Definition: ip6.pb-c.h:48
char * ip6_src
Definition: ip6.pb-c.h:52
uint32_t ip6_un1_nxt
Definition: ip6.pb-c.h:40
uint32_t ip6_un1_flow
Definition: ip6.pb-c.h:32
char * ip6_dst
Definition: ip6.pb-c.h:56
uint32_t ip6_un1_hlim
Definition: ip6.pb-c.h:44
uint32_t ip6_un1_plen
Definition: ip6.pb-c.h:36
char * id
Definition: ip6.pb-c.h:28