Fixed sizing issue for HandshakePacket.
Implemented trim fix for remaining packets.