Software Ver.2.0 Owner's manual

Methods of the IGCPacket Class Classes of the C++ Interface
CATC IBTrainer InfiniBand Exerciser API Reference 2-67
SetPacketLength
void SetPacketLength ( IN ig_int16 length );
Sets the packet length within the local routing header to the specified
length. You can create falsified packets by specifying an incorrect
length.
None
length
A 16-bit integer specifying the packet length in bytes (see
“Local
Routing Header Properties” on page 4-14
). The length must be a
multiple of four bytes. The packet length is usually calculated
automatically using
SetPayload
,
SetPRBSPayloadSize
(depending on the
value of the property
IGP_UsePRBS
), the call
Init()
and the value of the
property
IGP_UsePRBS
(refer to
“Generic Packet Properties” on page 4-12
).
“GetActualLength” on page 2-63
SetPayload
void SetPayload ( IN const & IGCBuffer dataarray );
Sets the payload to the data array. The length of the payload buffer
must be a multiple of four bytes. You must add zero to three padding
bytes and set
BTH_PadCnt
accordingly.
None
dataarray
Reference to the
IGCBuffer
object. The
IGCBuffer
class holds a buffer
(
dataarray
) for a data payload.
GetPayload
Call
Description
Return Value
Input Parameters
See also
Call
Description
Return Value
Input Parameters
See also