From owner-freebsd-net Tue Oct 30 23:38:59 2001 Delivered-To: freebsd-net@freebsd.org Received: from pc0.sm.ukrtel.net (pc0.sm.ukrtel.net [195.5.1.116]) by hub.freebsd.org (Postfix) with ESMTP id 0587D37B405 for ; Tue, 30 Oct 2001 23:38:54 -0800 (PST) Received: from cron.sm.ukrtel.net (cron.sm.ukrtel.net [10.16.250.40]) by pc0.sm.ukrtel.net (8.9.3/8.9.3) with ESMTP id JAA03643; Wed, 31 Oct 2001 09:38:47 +0200 (EET) (envelope-from mhl@cron.sm.ukrtel.net) Received: (from mhl@localhost) by cron.sm.ukrtel.net (8.11.6/8.11.3) id f9V7chO19182; Wed, 31 Oct 2001 09:38:43 +0200 (EET) (envelope-from mhl) Date: Wed, 31 Oct 2001 09:38:43 +0200 From: Yegorov Mikhail To: Archie Cobbs Cc: freebsd-net@freebsd.org Subject: Re: mdp and ng_iface Message-ID: <20011031093843.A19029@cron.sm.ukrtel.net> References: <20011026104640.A3717@cron.sm.ukrtel.net> <200110310451.f9V4pHo09419@arch20m.dellroad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200110310451.f9V4pHo09419@arch20m.dellroad.org>; from archie@dellroad.org on Tue, Oct 30, 2001 at 08:51:17PM -0800 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Oct 30, 2001 at 08:51:17PM -0800, Archie Cobbs wrote: > Yegorov Mikhail writes: > > Mpd-netgraph remove ngX interface at exit but I need fixed interfaces. > > Is it possible to create option with which mpd will not send NGM_SHUTDOWN > > message to ng_iface node. > > I'm not sure why you would want to do this. > > You can 'statically' configure mpd to use a particular interface > by using "new -i ngXX ..." when you create the bundle. > > After mpd stops, the interface is down and unconfigured so > it's not useful anyway. > I use SNMP to take counters of in an out octets on leased lines so I need fixed snmp-index. Without this it is hard to get statistic with SNMP. Now I use follow patch but I think this is not a good idea. With this patch after mpd restart snmp-indexes and counters on interfaces stays. --- src/ngfunc.c.orig Fri Oct 26 11:08:24 2001 +++ src/ngfunc.c Wed Oct 31 09:04:46 2001 @@ -524,10 +524,6 @@ Link lnk_save; int k; - if (iface) { - snprintf(path, sizeof(path), "%s:", b->iface.ifname); - NgFuncShutdownNode(b, b->name, path); - } lnk_save = lnk; bund_save = bund; for (k = 0; k < b->n_links; k++) { -- Mikhail Yegorov e-mail: mhl@sm.ukrtel.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message