Re: bug report in route_linux.c

2015-05-11 Thread Niels Baggesen
Den 04-05-2015 kl. 04:42 skrev Pete Flugstad:
> In Net-SNMP 5.7.3, the file
> agent/mibgroup/ip-forward-mib/data_access/route_linux.c, the function
> _load_ipv6 opens /proc/net/ipv6_route and processes it's contents.
>
> Immediately after opening the code does:
>
>  fgets(line,sizeof(line),in); /* skip header */
>
> However, in my version of linux (3.16.0), there is no header line on
> this file, so this line discards the first entry in that file.

Thanks for the note! This has been for fixed for the 5.5 branch and newer.

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


bug report in route_linux.c

2015-05-03 Thread Pete Flugstad
In Net-SNMP 5.7.3, the file
agent/mibgroup/ip-forward-mib/data_access/route_linux.c, the function
_load_ipv6 opens /proc/net/ipv6_route and processes it's contents.

Immediately after opening the code does:

fgets(line,sizeof(line),in); /* skip header */

However, in my version of linux (3.16.0), there is no header line on this
file, so this line discards the first entry in that file.

The above line needs to be deleted.

Pete
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders