nxdk
nxdk copied to clipboard
Pktdrv calculates wrong packet length
Formula for packet length should probably be this (based on disassembly):
unsigned int length = flag & 0xFFFF;
if (flag & NV_RX_SUBSTRACT1) {
assert(length > 0);
length--;
}
(Code in XQEMU and Cxbx-R downstream should be checked, too)
FTR: @thrimbor is working on a replacement for pktdrv that will likely fix this issue.
This was supposed to be closed by #611
Closed.