EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
dhcp.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: dhcp.proto */
3 
4 #ifndef PROTOBUF_C_dhcp_2eproto__INCLUDED
5 #define PROTOBUF_C_dhcp_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 Dhcp__DhcpSchema Dhcp__DhcpSchema;
18 
19 /* --- enums --- */
20 
21 /* --- messages --- */
22 
24  ProtobufCMessage base;
25  /*
26  * Packet id
27  */
28  char *id;
29  /*
30  * Packet packet type
31  */
32  uint32_t op;
33  /*
34  * Packet type of hardware address for this machine (Ethernet, etc)
35  */
36  uint32_t htype;
37  /*
38  * Packet length of hardware address (of this machine)
39  */
40  uint32_t hlen;
41  /*
42  * Packet hops
43  */
44  uint32_t hops;
45  /*
46  * Packet random transaction id number - chosen by this machine
47  */
48  uint32_t xid;
49  /*
50  * Packet seconds used in timing
51  */
52  uint32_t secs;
53  /*
54  * Packet flags
55  */
56  uint32_t flags;
57  /*
58  * Packet IP address of this machine (if we already have one)
59  */
60  char *ciaddr;
61  /*
62  * Packet IP address of this machine (offered by the DHCP server)
63  */
64  char *yiaddr;
65  /*
66  * Packet IP address of DHCP server
67  */
68  char *siaddr;
69  /*
70  * Packet IP address of DHCP relay
71  */
72  char *giaddr;
73  /*
74  * Packet client ether MAC addr
75  */
76  char *chaddr;
77 };
78 #define DHCP__DHCP_SCHEMA__INIT \
79  { \
80  PROTOBUF_C_MESSAGE_INIT(&dhcp__dhcp_schema__descriptor) \
81  , (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, 0, \
82  (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, \
83  (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, \
84  (char *)protobuf_c_empty_string \
85  }
86 
87 /* Dhcp__DhcpSchema methods */
90 size_t dhcp__dhcp_schema__pack(const Dhcp__DhcpSchema *message, uint8_t *out);
92  ProtobufCBuffer *buffer);
93 Dhcp__DhcpSchema *dhcp__dhcp_schema__unpack(ProtobufCAllocator *allocator,
94  size_t len, const uint8_t *data);
96  ProtobufCAllocator *allocator);
97 /* --- per-message closures --- */
98 
99 typedef void (*Dhcp__DhcpSchema_Closure)(const Dhcp__DhcpSchema *message,
100  void *closure_data);
101 
102 /* --- services --- */
103 
104 /* --- descriptors --- */
105 
106 extern const ProtobufCMessageDescriptor dhcp__dhcp_schema__descriptor;
107 
108 PROTOBUF_C__END_DECLS
109 
110 #endif /* PROTOBUF_C_dhcp_2eproto__INCLUDED */
Dhcp__DhcpSchema * dhcp__dhcp_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: dhcp.pb-c.c:29
void dhcp__dhcp_schema__free_unpacked(Dhcp__DhcpSchema *message, ProtobufCAllocator *allocator)
Definition: dhcp.pb-c.c:34
const ProtobufCMessageDescriptor dhcp__dhcp_schema__descriptor
Definition: dhcp.pb-c.c:145
size_t dhcp__dhcp_schema__pack(const Dhcp__DhcpSchema *message, uint8_t *out)
Definition: dhcp.pb-c.c:19
size_t dhcp__dhcp_schema__pack_to_buffer(const Dhcp__DhcpSchema *message, ProtobufCBuffer *buffer)
Definition: dhcp.pb-c.c:23
void dhcp__dhcp_schema__init(Dhcp__DhcpSchema *message)
Definition: dhcp.pb-c.c:10
size_t dhcp__dhcp_schema__get_packed_size(const Dhcp__DhcpSchema *message)
Definition: dhcp.pb-c.c:14
void(* Dhcp__DhcpSchema_Closure)(const Dhcp__DhcpSchema *message, void *closure_data)
Definition: dhcp.pb-c.h:99
Definition: dhcp.pb-c.h:23
char * chaddr
Definition: dhcp.pb-c.h:76
uint32_t htype
Definition: dhcp.pb-c.h:36
uint32_t secs
Definition: dhcp.pb-c.h:52
ProtobufCMessage base
Definition: dhcp.pb-c.h:24
uint32_t op
Definition: dhcp.pb-c.h:32
char * yiaddr
Definition: dhcp.pb-c.h:64
uint32_t hops
Definition: dhcp.pb-c.h:44
uint32_t flags
Definition: dhcp.pb-c.h:56
char * giaddr
Definition: dhcp.pb-c.h:72
uint32_t xid
Definition: dhcp.pb-c.h:48
char * ciaddr
Definition: dhcp.pb-c.h:60
char * siaddr
Definition: dhcp.pb-c.h:68
char * id
Definition: dhcp.pb-c.h:28
uint32_t hlen
Definition: dhcp.pb-c.h:40