From owner-freebsd-net@FreeBSD.ORG Wed Nov 26 03:53:27 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 D3AB616A4CE for ; Wed, 26 Nov 2003 03:53:27 -0800 (PST) Received: from smtp.uc3m.es (smtp01.uc3m.es [163.117.136.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52FBA43FD7 for ; Wed, 26 Nov 2003 03:53:26 -0800 (PST) (envelope-from jrh@it.uc3m.es) Received: from smtp01.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id D517743190 for ; Wed, 26 Nov 2003 12:53:24 +0100 (CET) Received: from cimborrio (cimborrio.it.uc3m.es [163.117.139.95]) by smtp01.uc3m.es (Postfix) with ESMTP id 62B5399FEE for ; Wed, 26 Nov 2003 12:53:24 +0100 (CET) From: Juan Rodriguez Hervella Organization: UC3M To: freebsd-net@freebsd.org Date: Wed, 26 Nov 2003 12:53:23 +0100 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311261253.26282.jrh@it.uc3m.es> Subject: Question about Netgraph (I'm in a mess :) 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, 26 Nov 2003 11:53:27 -0000 Hello, I'd like to make some modifications to the IPv6 hearder of some packets before sending them out the interface. I'm thinking where's the best way of doing this. So, I've found out the Netgraph tool (I didn't know it before :) but now I'm wondering how to use it properly. As far as I understand, I could have a "ng_iface" node which would have a "ipv6" hook to my new node, which would change the IPv6 packet.... I would grab the packets installing a new route towards the "ng_iface" node, right ? Then, if I want to insert the modified packet to send it out the interface, I should connect my new node to the "ng_ether" node ? or again sending out the packet through the same "ng_iface" node ? I'm a bit mix up with all this stuff, any help will be very appreciated. -- ****** JFRH ****** With every passing hour our solar system comes forty-three thousand miles closer to globular cluster M13 in the constellation Hercules, and still there are some misfits who continue to insist that there is no such thing as progress. -- Ransom K. Ferm