unions need to be packed
(cherry picked from commit b28d2d355d48efa913aba48be31d7907ea8af45f) Signed-off-by: Stefan `Sec` Zehl <sec@42.org>
This commit is contained in:
parent
6fcd448040
commit
f242c667ab
|
@ -83,7 +83,7 @@ struct packet{
|
||||||
struct exit{
|
struct exit{
|
||||||
uint8_t reserved[26];
|
uint8_t reserved[26];
|
||||||
}__attribute__((packed)) exit;
|
}__attribute__((packed)) exit;
|
||||||
} c;
|
}__attribute__((packed)) c;
|
||||||
|
|
||||||
uint16_t crc; //checksum of the packet, automatically generated and verfied by the library
|
uint16_t crc; //checksum of the packet, automatically generated and verfied by the library
|
||||||
}__attribute__((packed));
|
}__attribute__((packed));
|
||||||
|
|
|
@ -61,7 +61,7 @@ struct packet{
|
||||||
uint16_t gameId;
|
uint16_t gameId;
|
||||||
uint8_t reserved[17];
|
uint8_t reserved[17];
|
||||||
}__attribute__((packed)) join;
|
}__attribute__((packed)) join;
|
||||||
}c;
|
}__attribute__((packed)) c;
|
||||||
uint16_t crc;
|
uint16_t crc;
|
||||||
}__attribute__((packed));
|
}__attribute__((packed));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue