SNMP Manager Programmer's Guide
SNMP Manager Programmer’s Guide–134249
4-1
4
Using Header Files, Data
Structures, and Defines
This section describes Manager Services data definitions used in conjunction with the
library functions.
Header Files
Table 4-1 summarizes the Manager Services header files you need to include in your
manager source code. Although Manager Services provides additional header files,
these are the only ones you need to explicitly include. The other header files are
included as needed by those listed in Table 4-1
.
Typedefs
Table 4-2 summarizes the typedefs defined by Manager Services. Many of these are
used in the packet-handling structures defined by Manager Services and described in the
Packet-Handling Structures on page 4-2.
Table 4-1. Manager Services Header Files
C File
Name
System File
Name File Description
asn1.h asn1h Defines tags, data types, and macros for handling the ASN.1
subset used by SNMP and defines the structure used to
describe an OID (OBJ_ID_T)
buffer.h bufferh Defines the structure describing encoded-packet buffers
(EBUFFER_T) and prototypes for related library functions
buildpkt.h buildpkh Defines prototypes for the library functions used to construct
request and trap packets and bind variable bindings to them
localio.h localioh Defines data structures and macros for handling undecoded
ASN.1 information
objectid.h objectih Defines entry points into library routines that manage OIDs
snmp.h snmph Includes snmpdefs.h
snmpdefs.h snmpdefh Defines the packet structure (SNMP_PKT_T) and prototypes
for related library functions
snmpstat.h snmpstah Defines the structure (SNMP_STATS_T) that holds statistics
describing packet decoding