API libraries are outlined here in order to show the routines available to the SNMP agent designer. For more information on the syntax of these routines and application programmer interfaces, see F. SNMP Reference.
Also see the manual entry for m2Lib in the VxWorks Reference Manual.
The routines in this file provide the general processing interface to the user code in the files snmpIoLib.c, as well as routine-calls to user-defined hooks (which can be in any file, but must be linked in with the agent at build-time; see 4.8 Hooks). The routines available to the user are:
The routines in this file allow for SNMP buffer manipulation between TEST and SET method routines. Examine the method-routine sample code (see 4.2.2 $WIND_BASE/target/src/snmpv1/agent/) for examples of the usage of these routines.
The routines in this file are used when a trap is generated from the SNMP agent and variable information needs to be shipped to the Network Manager. This is accomplished bybinding the variables together with their values. For information on variable bindings, see 4.10 Access to MIB Variables( )
The routines in this file can be invoked from the method routines to add or associate a value of a given type with a variable binding. The variable binding is used in the SNMP response packet, which is sent to the Network Management Station which originally issued the request.
The routines in this file provide a miscellanous set of functions that can be used by method routine writers.
This is a list of routines that must be provided by the agent designer. Templates of these routines are distribued with SNMP to illustrate the usage of the routines. For more information, see 5.2 Configuring snmpIoLib.