From owner-freebsd-net Thu Jun 27 16: 0:26 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 9C92637B400 for ; Thu, 27 Jun 2002 16:00:18 -0700 (PDT) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020627230018.THNA15755.rwcrmhc53.attbi.com@InterJet.elischer.org>; Thu, 27 Jun 2002 23:00:18 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA71098; Thu, 27 Jun 2002 15:50:17 -0700 (PDT) Date: Thu, 27 Jun 2002 15:50:16 -0700 (PDT) From: Julian Elischer To: Arthur Peet Cc: freebsd-net@FreeBSD.ORG Subject: Re: bpf/netgraph interaction In-Reply-To: <5.1.1.6.2.20020627152659.0228f128@mail.toltecint.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Thu, 27 Jun 2002, Arthur Peet wrote: > > >Use the Source Luke! > > Thanks, Obi! :) I REALLY appreciate your response. > > >as you see, bpf copies are taken before netgraph processing.. > >and non-netgraph bridging occurs after that. > > It appears to me that if I switched the order in which the processing > occurs and recompiled the kernel, the function would be absolutely broken. > i.e I would never get to the BPF tap. Is this true? yes, and in this case, packets REinjected by netgraph never see the bridge code. because they are re-injected at a later stage of processing. > > Are there any other taps I may access in order to accomplish this goal? I forget the goal. sorry > > On another note - my kernel - 4.4-Release did not have the following line > between the two if statements: > > > ifp->if_ibytes += m->m_pkthdr.len + sizeof (*eh); > > Is it time for me to upgrade? > If you are working from sources, then it's usually worth tracking the altest version.. cvsup make world make kernel mergemaster reboot it's not that much work :-) (once you have the cvsup set up correctly) > Thanks again! > > -Art > > > > > > 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