SNMP Subagent Programmer's Guide

Callback Functions
4-28 119728—SNMP Subagent Programmer’s Guide
Writing Subagent Logic
Index Argument
Each callback function accepts an index_list argument. This argument is a pointer to an
ordered array of pointers. Each pointer in the array points to the value of each MIB
object that makes it the index:
When the functions are used for operations on table entries, the number and order of
index values is defined in the INDEX clause of the MIB definition for the entry:
INDEX index-list
The index-list names one or more MIB objects whose values make up the index for a
table entry. The index value is either a 32-bit number or a struct octet_string, depending
on the SNMP data type of the index. Refer to Table 4-1, earlier in this section, for
information about the relationship between SNMP data types and C data types.
indexes
1st index value
2nd index value
3rd index value
403