From owner-freebsd-net@FreeBSD.ORG Thu May 6 07:46:50 2004 Return-Path: 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 9D41516A4CE for ; Thu, 6 May 2004 07:46:50 -0700 (PDT) Received: from FreeBSD.csie.NCTU.edu.tw (freebsd.csie.nctu.edu.tw [140.113.17.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E80F43D45 for ; Thu, 6 May 2004 07:46:50 -0700 (PDT) (envelope-from jwwang@FreeBSD.csie.NCTU.edu.tw) Received: from localhost (localhost.csie.nctu.edu.tw [127.0.0.1]) by FreeBSD.csie.NCTU.edu.tw (Postfix) with ESMTP id 82D0E106C1B; Thu, 6 May 2004 22:46:21 +0800 (CST) Received: from FreeBSD.csie.NCTU.edu.tw ([127.0.0.1]) by localhost (FreeBSD.csie.NCTU.edu.tw [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 43432-05; Thu, 6 May 2004 22:46:17 +0800 (CST) Received: by FreeBSD.csie.NCTU.edu.tw (Postfix, from userid 1005) id 070AD106C07; Thu, 6 May 2004 22:46:17 +0800 (CST) Date: Thu, 6 May 2004 22:46:16 +0800 From: Jian-Wei Wang To: freebsd-net@freebsd.org Message-ID: <20040506144616.GA43633@FreeBSD.csie.NCTU.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: Problem with ng_ether packet flow.. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 14:46:50 -0000 Hi, I spent times to figure out the packet flow with ng_ether, like this: upper layer | ^ [ether_demux] ^ | +---<---[ng_ether_rcvdata]--<-- 'upper' --<--, ^ \ <--[bdg_forward]--<--+ ng_tee | / +--->---[ng_ether_input]---->-- 'lower' -->--` ^ [ether_input] ^ | device Why the [ng_ether_rcvdata] won't check if packets should travel to the [bdg_forward] when they are bridged packets? i.e. Should the packet flow be changed to this one? upper layer | ^ [ether_demux] ^ <--[bdg_forward]--<--+ | +---<---[ng_ether_rcvdata]--<-- 'upper' --<--, ^ \ | ng_tee | / +--->---[ng_ether_input]---->-- 'lower' -->--` ^ [ether_input] ^ | device Sincerely Yours, Jian-Wei Wang