From 9a7c46f59e89c1ea5f3b4118e5647c97e1a8bf13 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 25 Feb 2016 08:58:02 -0800 Subject: [PATCH] PDP11, VAX: Fix DEUNA/DELUA receive descriptor message size indicator. When packets arrive which require multiple receive buffers to deliver, the full packet size is reported in the MLEN field of the final receive descriptor used (the one with the ENF bit set). Previously, correct behavior only happened when the full packet fit into a single receive buffer. This problem was reported and the detail identified by Johnny Billquist. --- PDP11/pdp11_xu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PDP11/pdp11_xu.c b/PDP11/pdp11_xu.c index 4e85f63e..4d48a66e 100644 --- a/PDP11/pdp11_xu.c +++ b/PDP11/pdp11_xu.c @@ -1305,7 +1305,7 @@ void xu_process_receive(CTLR* xu) * part of the packet, and is included in the MLEN count. -- DTH */ xu->var->rxhdr[3] &= ~RXR_MLEN; - xu->var->rxhdr[3] |= wlen; + xu->var->rxhdr[3] |= (uint16)(item->packet.crc_len); /* Is this the end-of-frame? OR is buffer chaining disabled? */ if ((item->packet.used == item->packet.crc_len) ||