From owner-freebsd-net@FreeBSD.ORG Thu Oct 16 13:24:47 2003 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 A366316A4B3 for ; Thu, 16 Oct 2003 13:24:47 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id C40CE43FE3 for ; Thu, 16 Oct 2003 13:24:46 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by comcast.net (sccrmhc13) with ESMTP id <2003101620244501600hlan5e>; Thu, 16 Oct 2003 20:24:45 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA19938; Thu, 16 Oct 2003 13:24:42 -0700 (PDT) Date: Thu, 16 Oct 2003 13:24:41 -0700 (PDT) From: Julian Elischer To: "Fernando A. Paulo" In-Reply-To: <20031016200604.72938.qmail@web41501.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: Question about bridging code 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, 16 Oct 2003 20:24:47 -0000 this is a really complicatged way of doing this.. why not just use divert sockets, like natd? or, altenatively, if you must do it at link layer, use netgraph to directly deliver the packets to your daemon.. as to packet delay, if the daemon has a high priority then, no, it shouldn't slow it down much.. (natd does this and doesn't make a huge difference..) it may even be easier to write a netgraph in-kernel kernel module to do the munging.. see one of the many sample netgraph modules... On Thu, 16 Oct 2003, Fernando A. Paulo wrote: > > hi all, > > this is about the thread regarding the use of a > freebsd bridge and tap(4) to change the contents > of the frames. > > the solution proposed in the list was to use: > > net.link.ether.bridge_cfg=fxp0:0,tap0:0,tap1:1,fxp1:1 > > then you'd write and application to bridge between > clusters 0 and 1. > > i have a couple of questions, hopefully you can help > me: > > 1) wont the userland bridge kill your application > because of all the context-switches and copies? > > 2) are you using any library to rebuild your frames > (crc, etc)? i'm thinking about libnet. > > i'd be very glad if you could help me with these > doubts. > > thanks, > fernando. > > > > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >