From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 26 07:20:05 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1F7916A4CE for ; Mon, 26 Apr 2004 07:20:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C80FF43D53 for ; Mon, 26 Apr 2004 07:20:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i3QEK5c6018285 for ; Mon, 26 Apr 2004 07:20:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i3QEK5gt018284; Mon, 26 Apr 2004 07:20:05 -0700 (PDT) (envelope-from gnats) Date: Mon, 26 Apr 2004 07:20:05 -0700 (PDT) Message-Id: <200404261420.i3QEK5gt018284@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Archie Cobbs Subject: Re: kern/63317: make ng_ether(4) support "lower" and "orphans"simultaneously X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Archie Cobbs List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 14:20:06 -0000 The following reply was made to PR kern/63317; it has been noted by GNATS. From: Archie Cobbs To: Gleb Smirnoff Cc: Archie Cobbs , Maxim Konovalov , bzeeb-lists@lists.zabbadoz.net, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/63317: make ng_ether(4) support "lower" and "orphans"simultaneously Date: Mon, 26 Apr 2004 08:53:23 -0500 (CDT) Gleb Smirnoff wrote: > A> So just to make sure I understand: the new semantics of having both > A> hooks connected is that lower gets all packets and orphans would not > A> see any packets unless packets are also written into the upper hook > A> (e.g., if the node connected to lower "passes through" to upper). > > No. Lower gets all packets which in normal way would travel into upper > protocol stack. Orphans gets all packets which in normal way would be > discarded. Nothing depends on behavior of the node connected to lower. > > The functionality of hooks does not change at all. The new behavior is > the same as in current manpage: > > The lower hook is a connection to the raw Ethernet device. When con- > nected, all incoming packets are diverted out this hook. > > The orphans hook is equivalent to lower, except that only unrecognized > packets (that would otherwise be discarded) are written to the hook, and > normal incoming traffic is unaffected. > > The only difference is that the sentence > > At most one of orphans and lower may be connected at any time. > > is not the truth anymore. Let me be more specific. Suppose both lower and orphans are connected. A packet is received from the Ethernet hardware with ethertype 0x1234 (i.e., unrecognized). Which hook(s) (lower and/or orphans) does that packet get written to? Then: same question applied to a packet received from the upper hook. -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com