op_trace_packet()
Abstract
Enables tracing of a packet value in ODB.
Syntax
op_trace_packet (label, value)
| Argument | Type | Description |
|---|---|---|
label |
const char * |
Name of the argument to trace. This string will be displayed in the trace output. |
value |
Packet * |
The argument to be traced. |
Return Type
void
No return value.
Example
static void
fddi_hub_update_stats (Packet* pkptr, int strm_index)
{
FIN (fddi_hub_update_stats (pkptr, strm_index));
op_trace_packet ("Packet", pkptr);
...
Details
None.
Purpose
Provides an automatic way of tracing a packet value by programmatically issuing a trace command to ODB.
Errors
- Recoverable Error: Invalid label argument.
Reference
- None.