Computer Access Technology Corporation
IB
Tracer
Verification Script Engine Manual, version 1.0
Page 27 of 35
Before calling this function - in.Payload and in.PayloadLength are empty but some other
retrieving functions can be used to receive all information about fields in link packets, packet headers
and MAD decoded fields.
15.2 IsMad()
Verifies that current event is MAD
Format
:
IsMad()
Example:
if( IsMad() ) DoSomething();
16. Packet Header retrieving functions
This group of functions covers VSE capability to extract information about IB packet header fields.
If the header is not present in the packet – all of those functions will return null-value ( see CSL
Manual –for details about null-value ).
16.1 GetLRHField()
Extracts information about LRH header field
Format
:
GetLRHField (
lrh_fld
)
Parameters:
lrh_fld
- LRH field identifier that can be one of the following values:
Identifier Meaning
_VL
Virtual Lane
_LVER
Link version
_SL
Service Level
_DLID
Destination LID
_SLID
Source LID
_PLEN
Packet length
_LNH
Link next header field
Example:
val = GetLRHField (
_VL
); # extract VL field from LRH header