EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
eth.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: eth.proto */
3 
4 #ifndef PROTOBUF_C_eth_2eproto__INCLUDED
5 #define PROTOBUF_C_eth_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 Eth__EthSchema Eth__EthSchema;
18 
19 /* --- enums --- */
20 
21 /* --- messages --- */
22 
24  ProtobufCMessage base;
25  /*
26  * Packet timestamp
27  */
28  uint64_t timestamp;
29  /*
30  * Packet id
31  */
32  char *id;
33  /*
34  * Packet caplen
35  */
36  uint32_t caplen;
37  /*
38  * Packet length
39  */
40  uint32_t length;
41  /*
42  * Packet interface name
43  */
44  char *ifname;
45  /*
46  * Packet destination eth addr
47  */
48  char *ether_dhost;
49  /*
50  * Packet source ether addr
51  */
52  char *ether_shost;
53  /*
54  * Packet packet type ID field
55  */
56  uint32_t ether_type;
57 };
58 #define ETH__ETH_SCHEMA__INIT \
59  { \
60  PROTOBUF_C_MESSAGE_INIT(&eth__eth_schema__descriptor) \
61  , 0, (char *)protobuf_c_empty_string, 0, 0, \
62  (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, \
63  (char *)protobuf_c_empty_string, 0 \
64  }
65 
66 /* Eth__EthSchema methods */
69 size_t eth__eth_schema__pack(const Eth__EthSchema *message, uint8_t *out);
71  ProtobufCBuffer *buffer);
72 Eth__EthSchema *eth__eth_schema__unpack(ProtobufCAllocator *allocator,
73  size_t len, const uint8_t *data);
75  ProtobufCAllocator *allocator);
76 /* --- per-message closures --- */
77 
78 typedef void (*Eth__EthSchema_Closure)(const Eth__EthSchema *message,
79  void *closure_data);
80 
81 /* --- services --- */
82 
83 /* --- descriptors --- */
84 
85 extern const ProtobufCMessageDescriptor eth__eth_schema__descriptor;
86 
87 PROTOBUF_C__END_DECLS
88 
89 #endif /* PROTOBUF_C_eth_2eproto__INCLUDED */
const ProtobufCMessageDescriptor eth__eth_schema__descriptor
Definition: eth.pb-c.c:107
void eth__eth_schema__free_unpacked(Eth__EthSchema *message, ProtobufCAllocator *allocator)
Definition: eth.pb-c.c:34
Eth__EthSchema * eth__eth_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: eth.pb-c.c:29
void eth__eth_schema__init(Eth__EthSchema *message)
Definition: eth.pb-c.c:10
void(* Eth__EthSchema_Closure)(const Eth__EthSchema *message, void *closure_data)
Definition: eth.pb-c.h:78
size_t eth__eth_schema__pack_to_buffer(const Eth__EthSchema *message, ProtobufCBuffer *buffer)
Definition: eth.pb-c.c:23
size_t eth__eth_schema__pack(const Eth__EthSchema *message, uint8_t *out)
Definition: eth.pb-c.c:19
size_t eth__eth_schema__get_packed_size(const Eth__EthSchema *message)
Definition: eth.pb-c.c:14
Definition: eth.pb-c.h:23
uint32_t caplen
Definition: eth.pb-c.h:36
ProtobufCMessage base
Definition: eth.pb-c.h:24
char * ether_dhost
Definition: eth.pb-c.h:48
uint32_t ether_type
Definition: eth.pb-c.h:56
char * ifname
Definition: eth.pb-c.h:44
char * ether_shost
Definition: eth.pb-c.h:52
uint64_t timestamp
Definition: eth.pb-c.h:28
uint32_t length
Definition: eth.pb-c.h:40
char * id
Definition: eth.pb-c.h:32