From 495fc61a345ec92747ae0ddcd7740fe09e77c1cd Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 4 Oct 2015 11:02:17 +0200 Subject: [PATCH] Documentation: SNMP: update to recent changes Remove snmp_init(), it is called by lwip_init(). Remove snmp_inc_sysuptime() and snmp_add_sysuptime(), they do not exist anymore, MIB2 is now using sys_now(). --- doc/snmp_agent.txt | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/doc/snmp_agent.txt b/doc/snmp_agent.txt index 2653230f..3d514cc3 100644 --- a/doc/snmp_agent.txt +++ b/doc/snmp_agent.txt @@ -91,22 +91,6 @@ one or more trap destinations using these calls: snmp_trap_dst_enable(); snmp_trap_dst_ip_set(); -In the lwIP initialisation sequence call snmp_init() just after -the call to udp_init(). - -Exactly every 10 msec the SNMP uptime timestamp must be updated with -snmp_inc_sysuptime(). You should call this from a timer interrupt -or a timer signal handler depending on your runtime environment. - -An alternative way to update the SNMP uptime timestamp is to do a call like -snmp_add_sysuptime(100) each 1000ms (which is bigger "step", but call to -a lower frequency). Another one is 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 function which need "sysuptime" have to call -snmp_get_sysuptime). - 3 Private MIBs ==============