Syntax
#include <snmp_dpi.h> void fDPIparse(snmp_dpi_hdr *hdr_p);
Parameters
hdr_p
Description
The fDPIparse() function frees a parse tree that was previously created by a call to pDPIpacket(). The parse tree may have been created in other ways too. After calling fDPIparse(), no further references to the parse tree can be made.
A complete or partial DPI parse tree is also implicitly freed by call to a DPI function that serializes a parse tree into a DPI packet. The section that describes each function tells you if this is the case. An example of such a function is mkDPIresponse().
Examples
#include <snmp_dpi.h> snmp_dpi_hdr *hdr_p;
unsigned char *pack_p; /* assume pack_p points to */
/* incoming DPI packet */
hdr_p = pDPIpacket(pack_p);
/* handle the packet and when done do the following */
if (hdr_p) fDPIparse(hdr_p);
Related Information