From owner-freebsd-current Thu Jan 25 14:46:46 2001 Delivered-To: freebsd-current@freebsd.org Received: from hera.drwilco.net (10dyn244.dh.casema.net [212.64.31.244]) by hub.freebsd.org (Postfix) with ESMTP id DCA4B37B401 for ; Thu, 25 Jan 2001 14:46:26 -0800 (PST) Received: from ceres.drwilco.nl (ceres.drwilco.net [10.1.1.19]) by hera.drwilco.net (8.11.1/8.11.1) with ESMTP id f0PN87G04049; Fri, 26 Jan 2001 00:08:07 +0100 (CET) (envelope-from drwilco@drwilco.nl) Message-Id: <4.3.2.7.0.20010125144426.00c908e0@mail.bsdchicks.com> X-Sender: lists@mail.bsdchicks.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Thu, 25 Jan 2001 14:47:23 +0100 To: Julian Elischer From: "Rogier R. Mulhuijzen" Subject: Re: status of bridge code Cc: freebsd-current@FreeBSD.ORG In-Reply-To: <3A70A3F0.A23A2707@elischer.org> References: <4.3.2.7.0.20010125000221.00b07d60@mail.bsdchicks.com> <4.3.2.7.0.20010125101911.00c84220@mail.bsdchicks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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... DocWilco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message