From owner-freebsd-current Tue Mar 21 22: 9:39 2000 Delivered-To: freebsd-current@freebsd.org Received: from fgwmail7.fujitsu.co.jp (fgwmail7.fujitsu.co.jp [192.51.44.37]) by hub.freebsd.org (Postfix) with ESMTP id ECFA737BBAB for ; Tue, 21 Mar 2000 22:09:35 -0800 (PST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m3.gw.fujitsu.co.jp by fgwmail7.fujitsu.co.jp (8.9.3/3.7W-MX0002-Fujitsu Gateway) id PAA11122; Wed, 22 Mar 2000 15:09:26 +0900 (JST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from chisato.nd.net.fujitsu.co.jp by m3.gw.fujitsu.co.jp (8.9.3/3.7W-0002-Fujitsu Domain Master) id PAA25445; Wed, 22 Mar 2000 15:09:26 +0900 (JST) Received: from localhost (dhcp7173.nd.net.fujitsu.co.jp [10.18.7.173]) by chisato.nd.net.fujitsu.co.jp (8.8.5+2.7Wbeta5/3.3W8chisato-970826) with ESMTP id PAA07937; Wed, 22 Mar 2000 15:09:24 +0900 (JST) To: ilmar@ints.ru Cc: nms@otdel-1.org, freebsd-current@FreeBSD.ORG Subject: Re: -current sudden panics :( In-Reply-To: References: <20000321192642.B8237@Draculina.otdel-1.org> X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.93.4 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000322151022G.shin@nd.net.fujitsu.co.jp> Date: Wed, 22 Mar 2000 15:10:22 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 25 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > The driver for his card does not set packet header pointer, thus > > arp stuff see NULL pointer. small patch will cure this problem > > (at least I hope so). > > > > *** if_ed.c.old Tue Mar 21 19:21:40 2000 > > --- if_ed.c Tue Mar 21 19:23:27 2000 > > *************** > > *** 2728,2733 **** > > --- 2728,2734 ---- > > */ > > m->m_pkthdr.len = m->m_len = len - sizeof(struct ether_header); > > m->m_data += sizeof(struct ether_header); > > + m->m_pkthdr.header = (void *)eh; > > > > ether_input(&sc->arpcom.ac_if, eh, m); > > return; > This is driver for ed(ne2000) cards. I have realtek(rl driver). I took a > look at his source and didn't find such strings. There is comment there > about cutting off mbuf header before passing it to ether_input - what's > this? I think this fix is only necessary for token-ring case (as he say in his following mail), and not related to ethernet. Yoshinobu Inoue To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message