Bug 26018

Summary: Even FreeBSD 4.2 rises ProblemReport kern/23620
Product: Base System Reporter: togou <togou>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
smime.p7s none

Description togou 2001-03-23 04:10:01 UTC
There is not Ping communication with an outside host when I use ATM NIC "PCA-200E" made by Fore Systems with FreeBSD4.2.
I go so that a packet does loss by a Ping command in Problem Report kern/23620, but it is the state that return cannot receive at all even if I let you fly in a packet to an outside host in case of this time.
Because I let you go by way of an ATM switch whether you send in a packet and check it, there is not a mistake.

Fix: It was settled if I hit ProbremReport kern/23620 with the patch which appeared, but unfortunately it has been reject even if I hit it with a patch as it is.
I succeed when I guess this right with FreeBSD4.2 because I made the following patches.



Note)
There is not a change that 23620 is reporting contents coming out.
I cannot know that I am different if I let it is only a date of a file and spread it whether I am ignorance.--EQUpiDCbvGZnTN1OU2O55Bd2E3DeMORj618FY1DxfLDIEzSb
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- sys.old/dev/hfa/fore.h	Sat Aug 28 09:41:48 1999
+++ sys/dev/hfa/fore.h	Fri Mar 23 11:14:21 2001
@@ -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)
--- sys.old/dev/hfa/fore_receive.c	Sat Aug 28 09:41:51 1999
+++ sys/dev/hfa/fore_receive.c	Fri Mar 23 10:40:26 2001
@@ -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++;
How-To-Repeat: Compile kernel with the following ATM options
options         ATM_CORE
options         ATM_IP
options         ATM_SIGPVC
options         ATM_SPANS
options         ATM_UNI
device          hfa

Initialize ATM normally:
fore_dnld¡¡-i hfa0 -d /etc
atm set netif hfa0 nia 1
atm attach hfa0 SIGPVC
ifconfig nia0 192.168.1.1.up
atm add pvc hfa0 0 100 aal5 llc ip nia¡¡192.168.1.2

Now Ping host "192.168.1.2" on the ATM Network.

However, after ping command execution, as for the message, nothing is displayed.
Comment 1 stolz 2001-08-18 17:34:18 UTC
This PR can be closed

Reason:
It´s fixed in 4.4-PRE, I suppose even earlier when kern/23620 got
closed.
-- 
"I came out of it dead broke, without a house, without anything, except
a girlfriend and a knowledge of Unix." "Well, that´s something. Normally
those two are mutually exclusive." N. Stephenson, "Cryptonomicon"
Comment 2 dwmalone freebsd_committer freebsd_triage 2001-08-18 19:58:15 UTC
State Changed
From-To: open->closed

I think the required patches have been applied now.