From owner-freebsd-net Mon Mar 5 10:24:56 2001 Delivered-To: freebsd-net@freebsd.org Received: from VL-MS-MR003.sc1.videotron.ca (relais.videotron.ca [24.201.245.36]) by hub.freebsd.org (Postfix) with ESMTP id 8A2CA37B719 for ; Mon, 5 Mar 2001 10:24:51 -0800 (PST) (envelope-from bmilekic@technokratis.com) Received: from jehovah ([24.202.203.190]) by VL-MS-MR003.sc1.videotron.ca (Netscape Messaging Server 4.15) with SMTP id G9QLRB04.9M2; Mon, 5 Mar 2001 13:23:35 -0500 Message-ID: <005901c0a5a1$c54476d0$becbca18@jehovah> From: "Bosko Milekic" To: "John Hay" , References: <200103051234.f25CYFI22344@zibbi.icomtek.csir.co.za> Subject: Re: kernel: nd6_storelladdr failed, mbuf leak Date: Mon, 5 Mar 2001 13:26:17 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org John Hay wrote: > I have configured a 4-stable machine to be a router, routing ipv4, ipv6 > and ipx. To be able to do Ethernet_II framing on one interface and 802.3 > on another I have used if_ef.ko. > > I then noticed that "... kernel: nd6_storelladdr failed" gets logged > often and after a while all mbufs are used. It turned out that in > sys/net/if_ethersubr.c in ether_output() when nd6_storelladdr() fails, > it does a return(0) and does not free the mbuf. I checked -current > and it is still like that. It should not be freeing the mbuf, because that mbuf is being passed as an argument to ether_output(). It is typically the caller that ought to be responsible for freeing the mbuf in this case. > Now the reason it fails is that the ef(4) device use an ifp->if_type > (IFT_XETHER) that nd6_storelladdr() does not expect. > > Oh as a workaround I have configured route6d to ignore fxp1f0. > > John > -- > John Hay -- John.Hay@icomtek.csir.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message