fDPIparse()--Free Storage from DPI Packet Parse


  Syntax
 #include <qtossapi.h>

 void   fDPIparse( snmp_dpi_hdr *hdr_p );   


  Service Program Name: QTOSSAPI

  Default Public Authority: *USE

  Threadsafe: No

The fDPIparse() function frees storage that was previously allocated by a call to pDPIpacket() to store the DPI® packet.


Authorities and Locks

None.


Parameters

hdr_p
(Input) A pointer to an snmp_dpi_hdr structure.

Usage Notes

The fDPIparse() function frees dynamic storage that was previously created by a call to pDPIpacket(). After calling fDPIparse(), no further references should be made to hdr_p, which pointed to the snmp_dpi_hdr structure.

A complete or partial DPI snmp_dpi_hdr structure is also implicitly freed by a call to a DPI function that serializes an snmp_dpi_hdr structure 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().


Related Information


Example

Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.

  #include <qtossapi.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);


API introduced: V3R6

[ Back to top | UNIX-Type APIs | APIs by category ]