summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/zaprus.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/include/zaprus.h b/include/zaprus.h
index 51ac70c..f170c38 100644
--- a/include/zaprus.h
+++ b/include/zaprus.h
@@ -23,20 +23,15 @@ struct SaprusMessage {
uint16_t payload_len;
union {
struct {
- struct {
- char dest[4];
- };
+ char dest[4];
} relay;
struct {
- struct {
- uint16_t src_port;
- uint16_t dest_port;
- uint32_t seq_num;
- uint32_t msg_id;
- char _reserved;
- char options;
- };
-
+ uint16_t src_port;
+ uint16_t dest_port;
+ uint32_t seq_num;
+ uint32_t msg_id;
+ char _reserved;
+ char options;
} connection;
} headers;
char *payload;