mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-09-22 00:33:46 +08:00
MIB-2 object values near to completion, just committing for keeping the flame alive.
This commit is contained in:
@@ -50,6 +50,20 @@ Running the agent
|
||||
The following function calls must be made in your program to
|
||||
actually get the SNMP agent running.
|
||||
|
||||
Before starting the agent you should supply pointers
|
||||
to non-volatile memory for sysContact, sysLocation,
|
||||
and snmpEnableAuthenTraps. You can do this by calling
|
||||
|
||||
snmp_set_syscontact()
|
||||
snmp_set_syslocation()
|
||||
snmp_set_snmpenableauthentraps()
|
||||
|
||||
Additionally you may want to set
|
||||
|
||||
snmp_set_sysdescr()
|
||||
snmp_set_sysobjid() (if you have a private MIB)
|
||||
snmp_set_sysname()
|
||||
|
||||
In the lwIP initialisation sequence call snmp_init() just after
|
||||
the call to udp_init().
|
||||
|
||||
@@ -57,14 +71,6 @@ 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.
|
||||
|
||||
You _must_ create the following support functions for non-volatile storage
|
||||
since lwIP does not have notion of files or other non-volatile memories.
|
||||
|
||||
void snmp_store_syscontact(u8_t* ocstr, u8_t ocstrlen);
|
||||
void snmp_store_sysname(u8_t* ocstr, u8_t ocstrlen);
|
||||
void snmp_store_syslocation(u8_t* ocstr, u8_t ocstrlen);
|
||||
|
||||
|
||||
|
||||
Private MIBs
|
||||
============
|
||||
|
||||
Reference in New Issue
Block a user