From owner-freebsd-net@FreeBSD.ORG Sat Feb 1 01:24:00 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E2B95A34 for ; Sat, 1 Feb 2014 01:24:00 +0000 (UTC) Received: from mail-ea0-x229.google.com (mail-ea0-x229.google.com [IPv6:2a00:1450:4013:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7CFE91D14 for ; Sat, 1 Feb 2014 01:24:00 +0000 (UTC) Received: by mail-ea0-f169.google.com with SMTP id h10so2697882eak.28 for ; Fri, 31 Jan 2014 17:23:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DldUvhk2YYHjl7UFf7K2u2lvsRgxn091VS6CsQw3f0M=; b=l6jdXn+2wjwuNp2EHC+4vVMyvcnDfw1yjMFieqOxhfsD0uOvt93IeSUO46C7RsT9uc DS1udWMaXm4bQ7303SKhajinu6gGvaVhBfCD0mV+5E9XGakFYogTE1ALqKkjKe05fPbq 9pRPGqaUSPA0LRPIJ7f05cFAgITuBzk8nByALAnjr53Bhp30tZgF/8Rwi6JDKAtdfeKx dbmcOR2AoQXgQKmJ14Tk2R81PoOt19RPUSEw/gvuTLHm7ttfBfG7ndEdsbT7qeSCyeNw 6ru+cW3e5+XahqmqkG0m2MynVcWOYJkrLg8qNjuHwKcHSCbx9z4nbllWAIL24NtNIZHH 46bg== MIME-Version: 1.0 X-Received: by 10.14.6.5 with SMTP id 5mr21987956eem.51.1391217838906; Fri, 31 Jan 2014 17:23:58 -0800 (PST) Received: by 10.14.65.4 with HTTP; Fri, 31 Jan 2014 17:23:58 -0800 (PST) In-Reply-To: References: Date: Fri, 31 Jan 2014 17:23:58 -0800 Message-ID: Subject: Re: Errors using span interface on if_bridge(4) From: hiren panchasara To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Feb 2014 01:24:00 -0000 On Fri, Jan 31, 2014 at 3:45 PM, hiren panchasara wrote: > Looking at the code: if_bridge.c has bridge_span() which does > m_copypacket() to span interface. > > 2549 mc = m_copypacket(m, M_NOWAIT); > 2550 if (mc == NULL) { > 2551 sc->sc_ifp->if_oerrors++; > 2552 continue; > 2553 } > 2554 > 2555 bridge_enqueue(sc, dst_if, mc); > > Now, I am not sure if its failing at m_copypacket() or after that in > bridge_enqueue(). Not sure how do I look at if_oerrors count. -bash-4.2$ netstat -I ix3 Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll ix3 1500 90:e2:ba:30:73:41 9869468123 0 439521 28167217 0 0 ix3 - fe80::92e2:ba fe80::92e2:baff:f 0 - - 2 - - ix3 - 192.168.0.0 192.168.0.3 0 - - 0 - - (sorry if this doesn't format/line-wrap correctly). Basically Oerrs is 0 here. So I _think_ its failing in/after bridge_enqueue()?? cheers, Hiren