Make receiving packets work again after struct fxp_rfa grew.
This commit is contained in:
parent
463cd54319
commit
11111119ae
|
@ -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 @@ EtherReceive(pkt, maxlen)
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue