From owner-freebsd-current Thu Jan 25 14:56:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id 2C1E037B404; Thu, 25 Jan 2001 14:56:20 -0800 (PST) Received: from timbuktu-01.budapest.interware.hu ([195.70.51.193] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 14LvJL-0007My-00; Thu, 25 Jan 2001 23:56:11 +0100 Message-ID: <3A70AEFF.E743986D@elischer.org> Date: Thu, 25 Jan 2001 14:55:59 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: "Rogier R. Mulhuijzen" Cc: freebsd-current@FreeBSD.ORG, Archie@freebsd.org Subject: Re: status of bridge code References: <4.3.2.7.0.20010125000221.00b07d60@mail.bsdchicks.com> <4.3.2.7.0.20010125101911.00c84220@mail.bsdchicks.com> <4.3.2.7.0.20010125144426.00c908e0@mail.bsdchicks.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Rogier R. Mulhuijzen" wrote: > > > > What I want to know is can I just link tap0.upper to a new bridge hook? It > > > seems to me that is the case. > > > >yes I believe so.. > >you can hook as many interfaces as you want to the bridge node. > >(but you probably don't want to BRIDGE to your cable modem, but to ROUTE > >to it.... ) > > Don't worry =) > > I do want to bridge to the tunnel that goes over my cable modem though. > Make a real VPN there. (And yeah encrypted links) > > > > I don't see how though. Lets say I link only to left, right and left2right. > > > Now when data enters left it will go to both right and left2right. When > > > data enters right it goes to left. But when data enters left2right it goes > > > to right, not left, where I want it. > > > >no, data entering left2right goes to left. > >(errrr. At least it did when I wrote it.. if not let me know ) > > From ng_tee(4) > > Packets may also be received on right2left and left2right; if so, they > are forwarded unchanged out hooks left and right, respectively. > > packets on left2right are delivered on right.... > > And to be sure I checked ng_tee.c: > > } else if (hinfo == &sc->left2right) { > dup = NULL; > dest = &sc->right; > } > > I'll just add the algorithm to ng_tee... then I screwed it.. packets from left should go to left2right and packates from left2right should go backk to left.. But we haven't ever used that so it may be in error. > > DocWilco -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ from Perth, presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message