Greetings,
Here's a simple problem. I'm talking about AIX 5.1 here.
In agent/mibgroup/mibII/tcp.c, on line 77, you'll see:
int hz = 1000;
By including <sys/param.h> under AIX, we we also get <sys/m_param.h>, and on
line 44 of that file, you'll find:
#define hz __hz
Digging through this m_param.h file, you can follow a string of #define
statements backwards to find: hz -> __hz -> HZ -> _HZ -> 100
thus, line 77 in tcp.c becomes:
int 100 = 1000;
which is incorrect.
I quick grep shows me a total of 10 lines in two files
(agent/mibgroup/mibII/tcp.c & agent/mibgroup/ucd-snmp/vmstat.c) in the net-snmp
source tree that reference "hz".
Can we get this name in net-snmp changed? ;)
--
- Marc
David Rovner
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
|