summaryrefslogtreecommitdiffstats
path: root/src/packet.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-02-26 23:13:08 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-02-26 23:13:08 +0100
commit13306fc146b4839d511287f29df8572a80bf8914 (patch)
tree081330075fabb3a93b0c9c49b9f9f2317934381e /src/packet.h
parent57a63fc9304e71ddd2cf434cc4c8789a1a3a3c88 (diff)
downloadfastd-13306fc146b4839d511287f29df8572a80bf8914.tar
fastd-13306fc146b4839d511287f29df8572a80bf8914.zip
Implement I/O for a fixed peer
Diffstat (limited to 'src/packet.h')
-rw-r--r--src/packet.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/packet.h b/src/packet.h
index 79b1984..548b9a4 100644
--- a/src/packet.h
+++ b/src/packet.h
@@ -29,8 +29,11 @@
#define _FASTD_PACKET_H_
+typedef enum _fastd_reply_code {
+ REPLY_SUCCESS = 0,
+} fastd_reply_code;
+
typedef struct __attribute__ ((__packed__)) _fastd_packet_any {
- unsigned type : 8;
unsigned reply : 1;
unsigned cp : 1;
unsigned req_id : 6;
@@ -38,7 +41,6 @@ typedef struct __attribute__ ((__packed__)) _fastd_packet_any {
} fastd_packet_any;
typedef struct __attribute__ ((__packed__)) _fastd_packet_request {
- unsigned type : 8;
unsigned reply : 1;
unsigned cp : 1;
unsigned req_id : 6;
@@ -50,7 +52,6 @@ typedef struct __attribute__ ((__packed__)) _fastd_packet_request {
} fastd_packet_request;
typedef struct __attribute__ ((__packed__)) _fastd_packet_reply {
- unsigned type : 8;
unsigned reply : 1;
unsigned cp : 1;
unsigned req_id : 6;