z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


The fDPIparse() function

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

Format

#include <snmp_dpi.h>
 
void fDPIparse(snmp_dpi_hdr *hdr_p);

Parameters

hdr_p
A pointer to the parse tree. The parse tree is represented by an snmp_dpi_hdr structure.

Usage

The fDPIparse() function frees a parse tree that was previously created by a call to pDPIpacket(). The parse tree might 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 a 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);

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014