Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/lib/netif Make receiving packets work ag...



details:   https://anonhg.NetBSD.org/src/rev/dae23a1e18e4
branches:  trunk
changeset: 521120:dae23a1e18e4
user:      gson <gson%NetBSD.org@localhost>
date:      Thu Jan 24 02:52:15 2002 +0000

description:
Make receiving packets work again after struct fxp_rfa grew.

diffstat:

 sys/arch/i386/stand/lib/netif/i82557.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d8db3e9ca598 -r dae23a1e18e4 sys/arch/i386/stand/lib/netif/i82557.c
--- a/sys/arch/i386/stand/lib/netif/i82557.c    Thu Jan 24 02:46:32 2002 +0000
+++ b/sys/arch/i386/stand/lib/netif/i82557.c    Thu Jan 24 02:52:15 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i82557.c,v 1.6 2002/01/24 02:44:11 gson Exp $ */
+/* $NetBSD: i82557.c,v 1.7 2002/01/24 02:52:15 gson Exp $ */
 
 /*
  * Copyright (c) 1998, 1999
@@ -413,7 +413,7 @@
        if (rfa->rfa_status & FXP_RFA_STATUS_C) {
                len = rfa->actual_size & 0x7ff;
                if (len <= maxlen) {
-                       memcpy(pkt, (caddr_t)(rfa + 1), maxlen);
+                       memcpy(pkt, (caddr_t) rfa + RFA_SIZE, maxlen);
 #if 0
                        printf("rfa status=%x, len=%x\n",
                               rfa->rfa_status, len);



Home | Main Index | Thread Index | Old Index