Date: Sat, 14 Apr 2001 20:47:05 -0700 (PDT) From: Richard Hodges <rh@matriplex.com> To: Benny Chee <bennyc@magix.com.sg> Cc: freebsd-atm@FreeBSD.ORG Subject: Re: ForeRunner PCA200E on 4.2 Message-ID: <Pine.BSF.4.10.10104142042520.73508-100000@mail.matriplex.com> In-Reply-To: <20010415103235.A16019@magix.com.sg>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 15 Apr 2001, Benny Chee wrote: > Rich, > > spare a link for that patch? It is in the problem report: http://www.freebsd.org/cgi/query-pr.cgi?pr=23620 But here it is by itself: diff -U5 sys/dev/hfa/fore.h sys.new/dev/hfa/fore.h --- sys/dev/hfa/fore.h Fri Aug 27 17:41:48 1999 +++ sys.new/dev/hfa/fore.h Mon Dec 18 10:26:49 2000 @@ -115,11 +115,11 @@ * BUF_DATA_ALIGN) - BUF1_SM_HDR) * #define BUF1_SM_SIZE MAX(BUF1_SM_LEN - BUF1_SM_DOFF, 64) * */ #if ((BSD >= 199103) && defined(FORE_PCI)) -#define BUF1_SM_DOFF ((BUF1_SM_HOFF + SIZEOF_Buf_handle) - BUF1_SM_HDR) +#define BUF1_SM_DOFF (SIZEOF_Buf_handle) #define BUF1_SM_SIZE (BUF1_SM_LEN - BUF1_SM_DOFF) #endif #if ((BSD < 199103) && defined(FORE_SBUS) && defined(sun4c)) #define BUF1_SM_DOFF (BUF_DATA_ALIGN - BUF1_SM_HDR) #define BUF1_SM_SIZE (BUF1_SM_LEN - BUF1_SM_DOFF) diff -U5 sys/dev/hfa/fore_receive.c sys.new/dev/hfa/fore_receive.c --- sys/dev/hfa/fore_receive.c Fri Aug 27 17:41:51 1999 +++ sys.new/dev/hfa/fore_receive.c Mon Dec 18 10:29:16 2000 @@ -417,10 +417,13 @@ } /* * It looks like we've got a valid PDU - count it quick!! */ + mhead->m_pkthdr.rcvif = NULL; + mhead->m_pkthdr.csum_flags = 0; + mhead->m_pkthdr.aux = NULL; KB_PLENSET(mhead, pdulen); fup->fu_pif.pif_ipdus++; fup->fu_pif.pif_ibytes += pdulen; vcp = fvp->fv_connvc->cvc_vcc; vcp->vc_ipdus++; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-atm" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10104142042520.73508-100000>