EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
tcp.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: tcp.proto */
3 
4 #ifndef PROTOBUF_C_tcp_2eproto__INCLUDED
5 #define PROTOBUF_C_tcp_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 Tcp__TcpSchema Tcp__TcpSchema;
18 
19 /* --- enums --- */
20 
21 /* --- messages --- */
22 
24  ProtobufCMessage base;
25  /*
26  * Packet id
27  */
28  char *id;
29  /*
30  * Packet source port
31  */
32  uint32_t source;
33  /*
34  * Packet destination port
35  */
36  uint32_t dest;
37  /*
38  * Packet seq flag
39  */
40  uint32_t seq;
41  /*
42  * Packet ack_seq flag
43  */
44  uint32_t ack_seq;
45  /*
46  * Packet res1 flag
47  */
48  uint32_t res1;
49  /*
50  * Packet doff flag
51  */
52  uint32_t doff;
53  /*
54  * Packet fin flag
55  */
56  uint32_t fin;
57  /*
58  * Packet syn flag
59  */
60  uint32_t syn;
61  /*
62  * Packet rst flag
63  */
64  uint32_t rst;
65  /*
66  * Packet psh flag
67  */
68  uint32_t psh;
69  /*
70  * Packet ack flag
71  */
72  uint32_t ack;
73  /*
74  * Packet urg flag
75  */
76  uint32_t urg;
77  /*
78  * Packet window
79  */
80  uint32_t window;
81  /*
82  * Packet check
83  */
84  uint32_t check_p;
85  /*
86  * Packet urg_ptr
87  */
88  uint32_t urg_ptr;
89 };
90 #define TCP__TCP_SCHEMA__INIT \
91  { \
92  PROTOBUF_C_MESSAGE_INIT(&tcp__tcp_schema__descriptor) \
93  , (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
94  0, 0 \
95  }
96 
97 /* Tcp__TcpSchema methods */
100 size_t tcp__tcp_schema__pack(const Tcp__TcpSchema *message, uint8_t *out);
101 size_t tcp__tcp_schema__pack_to_buffer(const Tcp__TcpSchema *message,
102  ProtobufCBuffer *buffer);
103 Tcp__TcpSchema *tcp__tcp_schema__unpack(ProtobufCAllocator *allocator,
104  size_t len, const uint8_t *data);
106  ProtobufCAllocator *allocator);
107 /* --- per-message closures --- */
108 
109 typedef void (*Tcp__TcpSchema_Closure)(const Tcp__TcpSchema *message,
110  void *closure_data);
111 
112 /* --- services --- */
113 
114 /* --- descriptors --- */
115 
116 extern const ProtobufCMessageDescriptor tcp__tcp_schema__descriptor;
117 
118 PROTOBUF_C__END_DECLS
119 
120 #endif /* PROTOBUF_C_tcp_2eproto__INCLUDED */
Definition: tcp.pb-c.h:23
uint32_t ack
Definition: tcp.pb-c.h:72
uint32_t ack_seq
Definition: tcp.pb-c.h:44
uint32_t source
Definition: tcp.pb-c.h:32
uint32_t doff
Definition: tcp.pb-c.h:52
uint32_t check_p
Definition: tcp.pb-c.h:84
uint32_t psh
Definition: tcp.pb-c.h:68
uint32_t window
Definition: tcp.pb-c.h:80
uint32_t rst
Definition: tcp.pb-c.h:64
uint32_t res1
Definition: tcp.pb-c.h:48
uint32_t urg
Definition: tcp.pb-c.h:76
uint32_t urg_ptr
Definition: tcp.pb-c.h:88
uint32_t fin
Definition: tcp.pb-c.h:56
char * id
Definition: tcp.pb-c.h:28
uint32_t syn
Definition: tcp.pb-c.h:60
uint32_t dest
Definition: tcp.pb-c.h:36
uint32_t seq
Definition: tcp.pb-c.h:40
ProtobufCMessage base
Definition: tcp.pb-c.h:24
void tcp__tcp_schema__free_unpacked(Tcp__TcpSchema *message, ProtobufCAllocator *allocator)
Definition: tcp.pb-c.c:34
Tcp__TcpSchema * tcp__tcp_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: tcp.pb-c.c:29
const ProtobufCMessageDescriptor tcp__tcp_schema__descriptor
Definition: tcp.pb-c.c:160
size_t tcp__tcp_schema__pack_to_buffer(const Tcp__TcpSchema *message, ProtobufCBuffer *buffer)
Definition: tcp.pb-c.c:23
void(* Tcp__TcpSchema_Closure)(const Tcp__TcpSchema *message, void *closure_data)
Definition: tcp.pb-c.h:109
void tcp__tcp_schema__init(Tcp__TcpSchema *message)
Definition: tcp.pb-c.c:10
size_t tcp__tcp_schema__pack(const Tcp__TcpSchema *message, uint8_t *out)
Definition: tcp.pb-c.c:19
size_t tcp__tcp_schema__get_packed_size(const Tcp__TcpSchema *message)
Definition: tcp.pb-c.c:14