SNMP Manager Programmer's Guide

Using Header Files, Data Structures, and Defines
SNMP Manager Programmer’s Guide–134249
4-3
Encoded-Packet Structure (EBUFFER_T)
num_components
holds the number of integers in the sequence of integers making up an OID. For
example, an OID of 1.2.3.4 has four components.
component_list
points to an array of elements of type OIDC_T. OIDC_T is a Manager Services
typedef for a 32-bit unsigned integer. Each element in the array holds one of the
OID integers.
Encoded-Packet Structure (EBUFFER_T)
This structure describes a variable-length string buffer for holding encoded packets.
bflags
describes how the buffer was allocated. The following Manager Services defines
describe values for bflags:
#define BFL_IS_DYNAMIC 0x0001 /*Buffer was obtained by malloc*/
#define BFL_IS_STATIC 0x0000 /*Buffer was statically allocated*/
start_bp
points to the beginning of the buffer.
next_bp
points to the location in the buffer at which the next value will be written.
remaining
is the number of unused bytes in the buffer.
typedef struct EBUFFER_S
{
unsigned short int bflags;
OCTET_T *start_bp;
OCTET_T *next_bp;
ALENGTH_T remaining;
} EBUFFER_T;