sysUpTime jumps from 24 to 472 on Linux

"arul vadivel" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Net-SNMP Users,I am facing the issue mentioned in the link below:http://sourceforge.net/tracker/index.php?func=detail&amp;aid=418335&amp;group_id=12694&amp;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:&lt;diff&gt;=========================================*** 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 t
 he 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( str
 uct timeval *tv )  {      return marker_tticks((marker_t)tv);  }--- 947,958 ----  }    			/* struct timeval equivalents of these */! u_long timeval_uptime( struct timeval *tv )  {      retur
 n 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_tt
 icks( struct timeval *tv );  #endif /* _MIBGROUP_UTIL_FUNCS_H */&lt;/diff&gt;I modified the same in the src file and did make install to compile/install the changes.But, still it is not refl
 ected in my application. Could&nbsp; 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-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.