From owner-freebsd-net Sun Sep 1 23: 8:47 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC5F037B400 for ; Sun, 1 Sep 2002 23:08:41 -0700 (PDT) Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B5D843E7B for ; Sun, 1 Sep 2002 23:08:41 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: from iguana.icir.org (localhost [127.0.0.1]) by iguana.icir.org (8.12.3/8.11.3) with ESMTP id g8268XIb083482; Sun, 1 Sep 2002 23:08:33 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: (from rizzo@localhost) by iguana.icir.org (8.12.3/8.12.3/Submit) id g8268T0t083478; Sun, 1 Sep 2002 23:08:29 -0700 (PDT) (envelope-from rizzo) Date: Sun, 1 Sep 2002 23:08:29 -0700 From: Luigi Rizzo To: Jui-Nan Eric Lin Cc: freebsd-net@FreeBSD.ORG Subject: Re: Question about bridge(4): loop without physical loop Message-ID: <20020901230828.A83423@iguana.icir.org> References: <001101c24f3f$e39f5840$fa01a8c0@synvision.com.tw> <20020830090012.A53982@iguana.icir.org> <002b01c25217$a6842a00$fa01a8c0@synvision.com.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <002b01c25217$a6842a00$fa01a8c0@synvision.com.tw>; from ericlin@ericlin.cabin.idv.tw on Mon, Sep 02, 2002 at 08:28:24AM +0800 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Sep 02, 2002 at 08:28:24AM +0800, Jui-Nan Eric Lin wrote: > hi, > > I have searched with keyword "aa:aa:aa:aa:aa:aa" and get the same result. > It said that those might be collisions on the net. So I tried to reduce > collisions, but the message still appears. (not frequently) > If you have made a patch, please let me know. Thanks. one thing to try could be in sys/net/if_ethersubr.c:ether_input() before the call to bridge_in_ptr() add if (m->m_len < 42) { /* XXX */ m_freem(m); return; } A min-sized frame is 60 bytes + CRC, but in that point you have already subtracted the MAC header and the CRC so the comparison should be against 46. However, if this pkt is a VLAN one, you might conceivably have shaved another 4 bytes so make it 42. If (in a future) we are going for multiple encapsulations the threshold could become even lower, but this is not the case now. cheers luigi > Sincerely, > Jui-Nan Eric Lin > > ----- Original Message ----- > From: "Luigi Rizzo" > To: "Jui-Nan Eric Lin" > Cc: > Sent: Saturday, August 31, 2002 12:00 AM > Subject: Re: Question about bridge(4): loop without physical loop > > > > hi, > > these might be runt packets deriving e.g. from junk on the link. > > It is the first time that i see such reports so haven't > > worried too much about it. > > a possible fix could be to avoid bridging of packets that are > > too short for the ethernet specs or have crc errors. > > > > if the problem shows up frequently and you are willing to try some > > patches let me know, i could try to send you some code to > > fix this. > > > > cheers > > luigi > > > > On Thu, Aug 29, 2002 at 05:38:19PM +0800, Jui-Nan Eric Lin wrote: > > > Hi, all: > > > > > > I have installed bridge on my freebsd box, but the message showed on the > > > screen frequently and the network halted (packet missing): > > > > > > /kernel: -- loop (0) 55.55.55.55.55.55 to fxp1 from fxp0 (active) > > > /kernel: -- loop (0) 55.55.55.55.55.55 to fxp0 from fxp1 (active) > > > > > > It' weird because I didn't have a NIC which has mac address > > > 55.55.55.55.55.55. > > > I have searched with Google, and found the message below: > > > > > > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=180949+0+archive/2002/freebsd-n > > > et/20020707.freebsd-net > > > > > > It seems that bridge supports only NICs with "SIMPLEX" flag. > > > Therefore, I checked result of "ifconfig -a", but my two Intel 82550 > (fxp0, > > > fxp1) has "SIMPLEX" flag: > > > > > > fxp0: flags=8943 mtu > 1500 > > > fxp1: flags=8943 mtu > 1500 > > > > > > Any suggestion? > > > > > > P.S. #1 sysctl -a | grep bridge > > > > > > #sysctl -a | grep bridge > > > net.link.ether.bridge_cfg: fxp0,fxp1 > > > net.link.ether.bridge: 1 > > > net.link.ether.bridge_ipfw: 1 > > > net.link.ether.bridge_ipf: 0 > > > net.link.ether.bridge_ipfw_drop: 0 > > > net.link.ether.bridge_ipfw_collisions: 749 > > > > > > P.S.#2 Sorry for my poor English :) > > > > > > Sincerely, > > > Jui-Nan Eric Lin > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-net" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message