From owner-freebsd-net@FreeBSD.ORG Wed Jan 21 12:06:23 2004 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 9CF4716A4CE for ; Wed, 21 Jan 2004 12:06:23 -0800 (PST) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 3B0BA43D49 for ; Wed, 21 Jan 2004 12:06:19 -0800 (PST) (envelope-from dinesh@alphaque.com) Received: (qmail 68169 invoked by uid 0); 21 Jan 2004 20:06:17 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 21 Jan 2004 20:06:17 -0000 Received: from localhost (localhost.alphaque.com [127.0.0.1]) by prophet.alphaque.com (8.12.10/8.12.9) with ESMTP id i0LJ9IDQ001899; Thu, 22 Jan 2004 03:09:18 +0800 (MYT) (envelope-from dinesh@alphaque.com) Date: Thu, 22 Jan 2004 03:09:18 +0800 (MYT) From: Dinesh Nair To: Andrew Riabtsev In-Reply-To: <185104547741.20040121161130@b-o.ru> Message-ID: <20040122030427.S532-100000@prophet.alphaque.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re[2]: netgraph questions on ng_tee, ng_iface, ng_socket 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: Wed, 21 Jan 2004 20:06:23 -0000 On Wed, 21 Jan 2004, Andrew Riabtsev wrote: > And now befor send out packet throw one of "many" hook just overwrite > ip-src address with address given in > node->private->enabledLinks[hook->private->numb] or whatever it is > called in ng_one2many.c you'd also need to overwrite the destination ethernet address with the ethernet address of the next hop router for that interface. Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.alphaque.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+