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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message