SNMP Manager Programmer's Guide
Reference Summary
SNMP Manager Programmer’s Guide–134249
9-20
Unencoded-Packet Structure (SNMP_PKT_T)
Unencoded-Packet Structure (SNMP_PKT_T)
This structure holds a request, response, or trap packet.  The following fields in this 
structure are of interest to Manager Services programmers; most of the field types are 
typedefs listed earlier in this section, under  “Typedefs.” 
typedef struct SNMP_PKT_S
 {
 ...
 UINT_16_T lcl_ident
 ...
 INT_32_T snmp_version;
 ...
 EBUFFER_T community;
 ...
 ATVALUE_T pdu_type;
 ALENGTH_T pdu_length;
 union {
 struct {
 INT_32_T request_id;
 INT_32_T error_status;
 INT_32_T error_index;
 VBL_T std_vbl;
 } std_pdu;
 struct {
 OBJ_ID_T enterprise_objid;
 unsigned char net_address[4];
 INT_32_T generic_trap;
 INT_32_T specific_trap;
 UINT_32_T trap_time_ticks;
 VBL_T trap_vbl;
 } trap_pdu;
 } pdu;
 ...
 } SNMP_PKT_T;
lcl_ident
A packet identifier.
snmp_version
The SNMP version the packet contents reflects. The following 
Manager Services defines all equate to 0, the version indicator for 
SNMP Version 1:
#define VERSION_RFC1067 0
#define VERSION_RFC1098 0
#define VERSION_RFC1157 0
#define SNMP_VERSION_1 0
community
The community string.










