EthernetPacketizer: Correct reassembly for RAD devices

The RAD devices will give us a packet size larger than the packet,
as they specify the size of the entire reassembly.
This commit is contained in:
Paul Hollinsky
2022-03-03 20:34:46 -05:00
parent adad9b3761
commit f05fd5e201
2 changed files with 9 additions and 9 deletions
@@ -49,6 +49,7 @@ public:
uint8_t srcMAC[6] = { 0x00, 0xFC, 0x70, 0xFF, 0xFF, 0xFF };
uint16_t etherType = 0xCAB1; // Big endian, Should be 0xCAB1 or 0xCAB2
uint32_t icsEthernetHeader = 0xAAAA5555; // Big endian, Should be 0xAAAA5555
uint16_t payloadSize = 0; // If this is a multi-piece message, this is the size of the expected reassembly
// At this point in the packet, there is a 16-bit payload size, little endian
// This is calculated from payload size in getBytestream
uint16_t packetNumber = 0;