EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
arp.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: arp.proto */
3 
4 #ifndef PROTOBUF_C_arp_2eproto__INCLUDED
5 #define PROTOBUF_C_arp_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 Arp__ArpSchema Arp__ArpSchema;
18 
19 /* --- enums --- */
20 
21 /* --- messages --- */
22 
24  ProtobufCMessage base;
25  /*
26  * Packet id
27  */
28  char *id;
29  /*
30  * Packet Format of hardware address
31  */
32  uint32_t ar_hrd;
33  /*
34  * Packet Format of protocol address
35  */
36  uint32_t ar_pro;
37  /*
38  * Packet Length of hardware address
39  */
40  uint32_t ar_hln;
41  /*
42  * Packet Length of protocol address
43  */
44  uint32_t ar_pln;
45  /*
46  * Packet ARP opcode (command)
47  */
48  uint32_t ar_op;
49  /*
50  * Packet sender hardware address
51  */
52  char *arp_sha;
53  /*
54  * Packet sender protocol address
55  */
56  char *arp_spa;
57  /*
58  * Packet target hardware address
59  */
60  char *arp_tha;
61  /*
62  * Packet target protocol address *
63  */
64  char *arp_tpa;
65 };
66 #define ARP__ARP_SCHEMA__INIT \
67  { \
68  PROTOBUF_C_MESSAGE_INIT(&arp__arp_schema__descriptor) \
69  , (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, \
70  (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, \
71  (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string \
72  }
73 
74 /* Arp__ArpSchema methods */
77 size_t arp__arp_schema__pack(const Arp__ArpSchema *message, uint8_t *out);
79  ProtobufCBuffer *buffer);
80 Arp__ArpSchema *arp__arp_schema__unpack(ProtobufCAllocator *allocator,
81  size_t len, const uint8_t *data);
83  ProtobufCAllocator *allocator);
84 /* --- per-message closures --- */
85 
86 typedef void (*Arp__ArpSchema_Closure)(const Arp__ArpSchema *message,
87  void *closure_data);
88 
89 /* --- services --- */
90 
91 /* --- descriptors --- */
92 
93 extern const ProtobufCMessageDescriptor arp__arp_schema__descriptor;
94 
95 PROTOBUF_C__END_DECLS
96 
97 #endif /* PROTOBUF_C_arp_2eproto__INCLUDED */
size_t arp__arp_schema__pack(const Arp__ArpSchema *message, uint8_t *out)
Definition: arp.pb-c.c:19
const ProtobufCMessageDescriptor arp__arp_schema__descriptor
Definition: arp.pb-c.c:122
void(* Arp__ArpSchema_Closure)(const Arp__ArpSchema *message, void *closure_data)
Definition: arp.pb-c.h:86
void arp__arp_schema__free_unpacked(Arp__ArpSchema *message, ProtobufCAllocator *allocator)
Definition: arp.pb-c.c:34
void arp__arp_schema__init(Arp__ArpSchema *message)
Definition: arp.pb-c.c:10
size_t arp__arp_schema__get_packed_size(const Arp__ArpSchema *message)
Definition: arp.pb-c.c:14
size_t arp__arp_schema__pack_to_buffer(const Arp__ArpSchema *message, ProtobufCBuffer *buffer)
Definition: arp.pb-c.c:23
Arp__ArpSchema * arp__arp_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: arp.pb-c.c:29
Definition: arp.pb-c.h:23
uint32_t ar_pln
Definition: arp.pb-c.h:44
char * arp_spa
Definition: arp.pb-c.h:56
uint32_t ar_hln
Definition: arp.pb-c.h:40
ProtobufCMessage base
Definition: arp.pb-c.h:24
char * arp_tha
Definition: arp.pb-c.h:60
uint32_t ar_op
Definition: arp.pb-c.h:48
uint32_t ar_pro
Definition: arp.pb-c.h:36
char * id
Definition: arp.pb-c.h:28
char * arp_tpa
Definition: arp.pb-c.h:64
uint32_t ar_hrd
Definition: arp.pb-c.h:32
char * arp_sha
Definition: arp.pb-c.h:52