summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2012-09-18 15:29:11 +0300
committerLee Salzman <[email protected]>2012-09-18 15:29:11 +0300
commit74d4c4a88fb274b068352512d8d0dfa3ff819d56 (patch)
treef8d1ed6922109c6895a37f874a7d0ec6b4d58ed0
parent0fd4c9389b4ebcca855937f9349cee0eea0236b8 (diff)
downloadenet-74d4c4a88fb274b068352512d8d0dfa3ff819d56.tar.gz
enet-74d4c4a88fb274b068352512d8d0dfa3ff819d56.zip
fix serialization of mtu in verify connect packet
-rw-r--r--protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol.c b/protocol.c
index 9086c26..1ebf797 100644
--- a/protocol.c
+++ b/protocol.c
@@ -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);