From owner-freebsd-net Wed Oct 31 16:40:19 2001 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 08BEF37B401 for ; Wed, 31 Oct 2001 16:40:16 -0800 (PST) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA38243; Wed, 31 Oct 2001 16:27:04 -0800 (PST) Date: Wed, 31 Oct 2001 16:27:02 -0800 (PST) From: Julian Elischer To: "Vladimir B. Grebenschikov" Cc: freebsd-net@freebsd.org Subject: Re: mdp and ng_iface In-Reply-To: <15328.34968.177198.602714@vbook.express.ru> Message-ID: MIME-Version: 1.0 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 I have some patches somewher ethat allows netgraph interfaces to be renamed. I just need to find them. On Thu, 1 Nov 2001, Vladimir B. Grebenschikov wrote: > Archie Cobbs writes: > > 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. > > May be "more" right solution is rename netgraph interfaces and use > SNMP-software that aware about interface names not indexes ? > > > -Archie > > > > __________________________________________________________________________ > > Archie Cobbs * Packet Design * http://www.packetdesign.com > > -- > TSB Russian Express, Moscow > Vladimir B. Grebenschikov, vova@express.ru > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message