Correctly cleanup ENet packets if not used

This additionally adds logging when bad MAC addresses are found when transferring packets between clients
This commit is contained in:
James 2018-03-11 21:58:43 +11:00
parent 5dd8ac99e3
commit a2b65f0669
2 changed files with 48 additions and 6 deletions

View file

@ -45,6 +45,9 @@ constexpr MacAddress NoPreferredMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
// 802.11 broadcast MAC address
constexpr MacAddress BroadcastMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
/// Converts a MAC address to a string representation.
std::string MacAddressToString(const MacAddress& address);
// The different types of messages that can be sent. The first byte of each packet defines the type
enum RoomMessageTypes : u8 {
IdJoinRequest = 1,