1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-02-11 18:45:41 +00:00

SCP: Patches to allow IMP support to work.

This commit is contained in:
Richard Cornwell
2019-01-05 14:24:15 -05:00
parent 3c16f8b3f5
commit 44a18feb0b
3 changed files with 9 additions and 6 deletions

View File

@@ -576,7 +576,7 @@ int eth_get_packet_crc32_data(const uint8 *msg, int len, uint8 *crcdata)
uint32 crc = eth_crc32(0, msg, len); /* calculate CRC */
uint32 ncrc = htonl(crc); /* CRC in network order */
int size = sizeof(ncrc); /* size of crc field */
memcpy(crcdata, &ncrc, size); /* append crc to packet */
memcpy(crcdata, &crc, size); /* append crc to packet */
crc_len = len + size; /* set packet crc length */
} else {
crc_len = 0; /* appending crc would destroy packet */