Structure Definition
struct dpi_close_packet {
char reason_code; /* reason for closing */
};
typedef struct dpi_close_packet snmp_dpi_close_packet;
#define snmp_dpi_close_packet_NULL_p ((snmp_dpi_close_packet*)0)
Structure Members
reason_code
See DPI CLOSE Reason Codes for a list of valid reason codes.
Description
The snmp_dpi_close_packet structure represents a parse tree for a DPI CLOSE packet.
The snmp_dpi_close_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_CLOSE. The snmp_dpi_hdr structure then contains a pointer to a snmp_dpi_close_packet structure.
An snmp_dpi_close_packet_structure is also created as a result of a mkDPIclose() call, but the programmer never sees the structure since mkDPIclose() immediately creates a serialized DPI packet from it and then frees the structure.
It is recommended that DPI subagent programmer uses mkDPIclose() to create a DPI CLOSE packet.
Related Information