diff options
author | Lee Salzman <[email protected]> | 2012-09-18 15:29:11 +0300 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2012-09-18 15:29:11 +0300 |
commit | 74d4c4a88fb274b068352512d8d0dfa3ff819d56 (patch) | |
tree | f8d1ed6922109c6895a37f874a7d0ec6b4d58ed0 | |
parent | 0fd4c9389b4ebcca855937f9349cee0eea0236b8 (diff) | |
download | enet-74d4c4a88fb274b068352512d8d0dfa3ff819d56.tar.gz enet-74d4c4a88fb274b068352512d8d0dfa3ff819d56.zip |
fix serialization of mtu in verify connect packet
-rw-r--r-- | protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -382,7 +382,7 @@ enet_protocol_handle_connect (ENetHost * host, ENetProtocolHeader * header, ENet verifyCommand.verifyConnect.outgoingPeerID = ENET_HOST_TO_NET_16 (currentPeer -> incomingPeerID); verifyCommand.verifyConnect.incomingSessionID = incomingSessionID; verifyCommand.verifyConnect.outgoingSessionID = outgoingSessionID; - verifyCommand.verifyConnect.mtu = ENET_HOST_TO_NET_16 (currentPeer -> mtu); + verifyCommand.verifyConnect.mtu = ENET_HOST_TO_NET_32 (currentPeer -> mtu); verifyCommand.verifyConnect.windowSize = ENET_HOST_TO_NET_32 (windowSize); verifyCommand.verifyConnect.channelCount = ENET_HOST_TO_NET_32 (channelCount); verifyCommand.verifyConnect.incomingBandwidth = ENET_HOST_TO_NET_32 (host -> incomingBandwidth); |