Hi Net-SNMP Users,I am facing the issue mentioned in the link
below:http://sourceforge.net/tracker/index.php?func=detail&aid=418335&group_id=12694&atid=112694I
just want to fix this in my application using ucd-snmp 4.2.3 (without migrating
to latest version).When I do diff between latest version and the old version
agent/mibgroups/util_func.c and .h file,I can see they modified the return
type for sysUptime to u_long from int as given
below:<diff>=========================================*** util_funcs.c
Tue Sep 24 16:00:08 2002--- /tmp/rh73-ucdsnmp-423/agent/mibgroup/util_funcs.c
Mon Sep 24 08:52:10 2007****************** 924,933 **** extern struct timeval
starttime; /* Return the value of \'sysUpTime\' at the given
marker */! int marker_uptime( marker_t pm ) {! int res; marker_t
start = (marker_t)&starttime; res = atime_diff( start, pm );--- 924,933
---- extern struct timeval starttime; /* Return the value of
\'sysUpTime\' at the given marker */! u_long marker_uptime( marker_t pm ) {!
u_long res; marker_t start = (marker_t)&starttime; res =
atime_diff( start, pm );****************** 935,944 **** } /*
Return the number of timeTicks since the given marker */! int marker_tticks(
marker_t pm ) {! int res; marker_t now = atime_newMarker();
res = atime_diff( pm, now );--- 935,944 ---- }
/* Return the number of timeTicks since the given marker */!
u_long marker_tticks( marker_t pm ) {! u_long res; marker_t now =
atime_newMarker(); res = atime_diff( pm, now );******************
947,958 **** } /* struct timeval equivalents of these */!
int timeval_uptime( struct timeval *tv ) { return
marker_uptime((marker_t)tv); } ! int timeval_tticks( struct timeval *tv ) {
return marker_tticks((marker_t)tv); }--- 947,958 ---- }
/* struct timeval equivalents of these */! u_long timeval_uptime( struct
timeval *tv ) { return marker_uptime((marker_t)tv); } ! u_long
timeval_tticks( struct timeval *tv ) { return
marker_tticks((marker_t)tv); }*** util_funcs.h Tue Sep 24 16:00:08 2002---
/tmp/rh73-ucdsnmp-423/agent/mibgroup/util_funcs.h Mon Sep 24 08:49:50
2007****************** 42,49 **** int Add_Entry( mib_table_t, void*); void
*Retrieve_Table_Data( mib_table_t, int*); ! int marker_uptime( marker_t pm );!
int
marker_tticks( marker_t pm );! int timeval_uptime( struct timeval *tv );! int
timeval_tticks( struct timeval *tv ); #endif /* _MIBGROUP_UTIL_FUNCS_H */---
42,49 ---- int Add_Entry( mib_table_t, void*); void *Retrieve_Table_Data(
mib_table_t, int*); ! u_long marker_uptime( marker_t pm );! u_long
marker_tticks( marker_t pm );! u_long timeval_uptime( struct timeval *tv );!
u_long timeval_tticks( struct timeval *tv ); #endif /* _MIBGROUP_UTIL_FUNCS_H
*/</diff>I
modified the same in the src file and did make install to compile/install the
changes.But, still it is not reflected in my application. Could
someone please shed some light on this?It would be very much
approciated.Regards,Arul
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders