From 5b0875108d891c516cb04e7d063bfb5dc5fdae07 Mon Sep 17 00:00:00 2001 From: pirzyk Date: Wed, 20 Jun 2001 17:09:14 +0000 Subject: [PATCH] Applied the patch to fix HARP ATM that was broken when KAME IPv6 came into FreeBSD. PR: kern/23620 Submitted by: rh@matriplex.com MFC after: 1 month --- sys/dev/hfa/fore.h | 2 +- sys/dev/hfa/fore_receive.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/hfa/fore.h b/sys/dev/hfa/fore.h index 16d6dd341146..5b64c31864ae 100644 --- a/sys/dev/hfa/fore.h +++ b/sys/dev/hfa/fore.h @@ -98,7 +98,7 @@ typedef struct m_ext M_ext; * #define BUF1_SM_SIZE MAX(BUF1_SM_LEN - BUF1_SM_DOFF, 64) * */ -#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) #define BUF1_SM_QUELEN 16 /* Entries in supply queue */ diff --git a/sys/dev/hfa/fore_receive.c b/sys/dev/hfa/fore_receive.c index 5b88883b2228..fc718dbe28d0 100644 --- a/sys/dev/hfa/fore_receive.c +++ b/sys/dev/hfa/fore_receive.c @@ -445,6 +445,9 @@ fore_recv_drain(fup) /* * 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;