#include <qtossapi.h> int DPI_PACKET_LEN( unsigned char *packet_p );
The DPI_PACKET_LEN() macro returns the length (number of bytes) of a Distributed Protocol Interface (DPI) packet.
None.
value | An integer value that represents the total DPI packet length. |
For more information, see "SNMP Subagent Problem Determination" in the Simple Network Management Protocol (SNMP) Support book.
The DPI_PACKET_LEN() macro generates a C expression that returns an integer that represents the total length of a DPI packet. It uses the first 2 bytes (in network byte order) of the packet to calculate the length. The length returned includes these first 2 bytes.
See Code disclaimer information for information pertaining to code examples.
#include <qtossapi.h> unsigned char *pack_p; int length; pack_p = mkDPIclose(SNMP_CLOSE_goingDown); if (pack_p) { length = DPI_PACKET_LEN(pack_p); /* Send packet to agent or subagent. */ }
Top | UNIX-Type APIs | APIs by category |