Structure Definition
struct dpi_set_packet {
char *object_p; /* ptr to Object ID (string) */
char *group_p; /* ptr to sub-tree (group) */
char *instance_p; /* ptr to rest of OID */
unsigned char value_type; /* value type: SNMP_TYPE_xxx */
unsigned short value_len; /* value length */
char *value_p; /* ptr to the value itself */
struct dpi_set_packet *next_p; /* ptr to next in chain */
};
typedef struct dpi_set_packet snmp_dpi_set_packet;
#define snmp_dpi_set_packet_NULL_p ((snmp_dpi_set_packet *)0)
Structure Members
object_p
Use of the term instance_p here should not be confused with an OBJECT instance because this string may consist of a piece of the OBJECT IDENTIFIER plus the INSTANCE IDENTIFIER.
See DPI SNMP Value Types for a list of currently defined value types.
See Value Representation for information on how the data is represented for the various value types.
Description
The snmp_dpi_set_packet structure represents a parse tree for a DPI SET request.
The snmp_dpi_set_packet structure may be created as a result of a call to pDPIpacket(). This is the case if the DPI packet is of type SNMP_DPI_SET, SNMP_DPI_COMMIT or SNMP_DPI_UNDO. The snmp_dpi_hdr structure then contains a pointer to a chain of one or more snmp_dpi_set_packet structures.
This structure can also be created with a mkDPIset() call, which is typically used when preparing varBinds for a DPI RESPONSE packet.
Related Information
The pDPIpacket() Function The
mkDPIset() Function
DPI SNMP Value Types
Value Representation
The snmp_dpi_hdr Structure