From owner-freebsd-net Wed Oct 31 15:15:14 2001 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 93CFA37B408 for ; Wed, 31 Oct 2001 15:15:09 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id PAA66347; Wed, 31 Oct 2001 15:03:51 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id f9VN3pC11975; Wed, 31 Oct 2001 15:03:51 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200110312303.f9VN3pC11975@arch20m.dellroad.org> Subject: Re: mdp and ng_iface In-Reply-To: <20011031093843.A19029@cron.sm.ukrtel.net> "from Yegorov Mikhail at Oct 31, 2001 09:38:43 am" To: Yegorov Mikhail Date: Wed, 31 Oct 2001 15:03:50 -0800 (PST) Cc: freebsd-net@freebsd.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 Yegorov Mikhail writes: > 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++) { That's the right patch for what you want to do. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message