From owner-freebsd-net Thu Jun 27 16:40:18 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id A03C537B400 for ; Thu, 27 Jun 2002 16:40:11 -0700 (PDT) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020627234011.VRXN9178.rwcrmhc51.attbi.com@InterJet.elischer.org>; Thu, 27 Jun 2002 23:40:11 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA71273; Thu, 27 Jun 2002 16:20:54 -0700 (PDT) Date: Thu, 27 Jun 2002 16:20:52 -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.20020627170548.0220fb38@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 Ipfw divers from within the IP stack by then it's too late. you could diver th epackets using netgraph and filter them and then pass them back into the eiface netgraph node to continue up. then you tell your application to listen to the "nge" interface.. unfortunatly another driver also produces 'nge' interfaces, but the chance you have htat card is quite small. [fxp0]<--->[ng_ether]<----->{filter}<--->ng_eiface<---->[IP stack] \ \---BPF On Thu, 27 Jun 2002, Arthur Peet wrote: > At 04:50 PM 6/27/2002, Julian Elischer wrote: > > > Are there any other taps I may access in order to accomplish this goal? > > > >I forget the goal. sorry > > > > No problem - Hope you don't mind if I restate it. > I am trying to strip/drop packets before they reach a server process which uses > BPF for communicating with the network interface. > I have briefly been looking into using an ipfw/divert socket, but I don't > think that is > going to work either. > > 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