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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user