nxdk icon indicating copy to clipboard operation
nxdk copied to clipboard

Pktdrv calculates wrong packet length

Open JayFoxRox opened this issue 6 years ago • 1 comments

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)

JayFoxRox avatar Jun 09 '19 19:06 JayFoxRox

FTR: @thrimbor is working on a replacement for pktdrv that will likely fix this issue.

Teufelchen1 avatar Jun 10 '20 16:06 Teufelchen1

This was supposed to be closed by #611

Closed.

JayFoxRox avatar Jun 09 '23 20:06 JayFoxRox