[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Re: [lwip-commits] lwip CHANGELOG src/core/snmp/mib2.c src/
From: |
Frédéric BERNON |
Subject: |
[lwip-devel] Re: [lwip-commits] lwip CHANGELOG src/core/snmp/mib2.c src/include... |
Date: |
Mon, 10 Sep 2007 21:09:22 +0200 |
A sample for that :
#define SNMP_GET_SYSUPTIME(sysuptime) { UInt64 SysTime=0; \
tmosalGetSysTime((ptmosalSysTime_t)(&SysTime)); \
sysuptime = (UInt32)(SysTime/10ULL); \
}
----- Original Message -----
From: "Frédéric Bernon" <address@hidden>
To: <address@hidden>
Sent: Monday, September 10, 2007 8:50 PM
Subject: [lwip-commits] lwip CHANGELOG src/core/snmp/mib2.c src/include...
CVSROOT: /sources/lwip
Module name: lwip
Changes by: Frédéric Bernon <fbernon> 07/09/10 18:50:45
Modified files:
. : CHANGELOG
src/core/snmp : mib2.c
src/include/lwip: snmp.h
Log message:
enable to remove SNMP timer (which consumne several cycles even when it's
not necessary). snmp_agent.txt tell to call snmp_inc_sysuptime() each 10ms
(but, it's intrusive if you use sys_timeout feature). Now, you can decide
to call snmp_add_sysuptime(100) each 1000ms (which is bigger "step", but
call to a lower frequency). Or, you can decide to not call
snmp_inc_sysuptime() or snmp_add_sysuptime(), and to define the
SNMP_GET_SYSUPTIME(sysuptime) macro. This one is undefined by default in
mib2.c. SNMP_GET_SYSUPTIME is called inside snmp_get_sysuptime(u32_t
*value), and enable to change "sysuptime" value only when it's queried
(any direct call to "sysuptime" is changed by a call to
snmp_get_sysuptime).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/lwip/CHANGELOG?cvsroot=lwip&r1=1.222&r2=1.223
http://cvs.savannah.gnu.org/viewcvs/lwip/src/core/snmp/mib2.c?cvsroot=lwip&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/lwip/src/include/lwip/snmp.h?cvsroot=lwip&r1=1.21&r2=1.22
_______________________________________________
lwip-commits mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-commits
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] Re: [lwip-commits] lwip CHANGELOG src/core/snmp/mib2.c src/include...,
Frédéric BERNON <=