From owner-freebsd-net@FreeBSD.ORG Tue Jul 29 03:29:03 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 31D7A37B401 for ; Tue, 29 Jul 2003 03:29:03 -0700 (PDT) Received: from vsmtp3.tin.it (vsmtp3.tin.it [212.216.176.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4756043FA3 for ; Tue, 29 Jul 2003 03:29:02 -0700 (PDT) (envelope-from flag@tin.it) Received: from newluxor.skynet.org (80.182.24.132) by vsmtp3.tin.it (7.0.019) id 3F16C22A003C29DF for freebsd-net@FreeBSD.ORG; Tue, 29 Jul 2003 12:29:00 +0200 Received: by newluxor.skynet.org (Postfix, from userid 1002) id 5AB7F1EC; Tue, 29 Jul 2003 12:30:42 +0200 (CEST) Date: Tue, 29 Jul 2003 12:30:42 +0200 From: Paolo Pisati To: FreeBSD_Net Message-ID: <20030729103042.GA230@newluxor.skynet.org> References: <20030728224737.GA47439@newluxor.skynet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Useless-Header: Look ma, it's a # sign! X-Operating-System: FreeBSD newluxor.skynet.org 4.8-STABLE FreeBSD 4.8-STABLE Subject: Re: Differences between netgraph nodes in 4.x and 5.x 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: Tue, 29 Jul 2003 10:29:03 -0000 On Mon, Jul 28, 2003 at 07:13:04PM -0700, Julian Elischer wrote: > > If you want to send me the node you have writen I can > make the diffs and send it back :-) thanks Julian, but i prefer to do it myself, cause i want to understand how the hell netgraph works... =) btw, i think i did the converion and it was quite straightforward, but i've still a little problem that i didn't have in 5.x: if i try to unload my module, change the internals, compile and use it again, it fails! =P I think it's a problem in the shutdown/disconnect part of my work, cause this is what i get: ngctl mkpeer rl0: tee lower right ngctl: send msg: File exists actually tee is my own node, i didn't yet change the name to classifier but it's my node. And while you are listening, i can show u something else... =) I have NETGRAPH in my kernel, and this is what i get when i try to load ng_ether the first time: [root@newluxor root]# kldload ng_ether module_register: module netgraph already exists! linker_file_sysinit "netgraph.ko" failed to register! 17 kldload: can't load ng_ether: Exec format error ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it fails to load the node... [root@newluxor root]# kldload ng_ether while the second time it works... =O [root@newluxor root]# kldunload ng_ether kldunload: can't unload file: Device busy and if i try to unload it, it always says that it's busy: i think this is due to the inability to delete an interface, isn't it? nothing really nasty, but maybe you didn't know... =) thank you & bye. -- Paolo GUFI: http://www.gufi.org