op_apptrack_pk_deliver()
Abstract
Timestamps a packet with the time that it will be sent and received via op_pk_deliver().
Syntax
op_apptrack_pk_deliver (pkptr, dest_objid, total_delay)
| Argument | Type | Description |
|---|---|---|
pkptr |
SimT_Packet * |
Packet of interest. |
dest_objid |
VosT_uInt64 |
Object ID of the packet's destination module. |
total_delay |
double |
Time from current sim time until packet reception, in seconds. |
Return Type
Compcode
OPC_COMPCODE_SUCCESS if the KP completes successfully; OPC_COMPCODE_FAILURE otherwise.
Details
/* For efficiency mode, deliver the packet directly. */
if (efficiency_enabled)
{
/* Apptrack for efficiency mode. */
op_apptrack_pk_deliver (mpdu_pkptr, op_topo_parent (enb_as_objid), LTEC_SUBFRAME_DUR - 1E-6);
op_pk_deliver_delayed (mpdu_pkptr, enb_as_objid, 1, LTEC_SUBFRAME_DUR - 1E-6);
}
else
None.
Purpose
This KP provides a way to stamp the transmit and receive times for a packet that will be sent via op_pk_deliver(). It is intended for use when the transmit/receive pipeline is being skipped entirely (for example, in the efficiency mode of the Riverbed LTE model).
Errors
- None.
Reference
- None.