SNMP Manager Programmer's Guide
Reference Summary
SNMP Manager Programmer’s Guide–134249
9-27
Initializing Packets
SNMP_Free(), described later in this section under “Function for Releasing Packet 
Memory.” 
packet = SNMP_Create_Trap(version, 
 community-length,
 community-identifier,
 enterprise-count,
 enterprise-components, 
 address,
 generic-trap,
 specific-trap;
 timestamp,
 num-varbinds);
SNMP_PKT_T* SNMP_Create_Trap(int version,
 int community-length,
 char *community-identifier,
 int enterprise-count,
 OIDC_T *enterprise-
components,
 OCTET_T *address,
 int generic-trap,
 INT_32_T specific-trap,
 UINT_32_T timestamp,
 int num-varbinds);
packet
A pointer to a structure of type SNMP_PKT_T if the function 
succeeds or 0 if it fails.
version
One of the following defines, all of which equate to 0, indicating 
Version 1 of SNMP:
VERSION_RFC1067
VERSION_RFC1098
VERSION_RFC1157
SNMP_VERSION_1
community-
length
The number of bytes in the community identifier to which 
community-identifier points.
community-
identifier
A pointer to a character buffer containing the community 
identifier.
enterprise-
count
The number of components in the OID identifying the enterprise 
whose value you supply in enterprise-components. For 
example, a Tandem enterprise identifier of 1.1.3.6.1.4.1.169 has a 
component count of 8.
enterprise-
components
A pointer to a structure of type OIDC_T that contains the OID of 
the enterprise you want to identify with the trap.
address
A pointer to a buffer containing the IP address at which your 
manager resides.










