Apply filter, Search/ find packets, Search/find packets – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 157
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
How to Navigate through Trace File 157
Apply Filter
To apply filtering on packets of a loaded trace file, use the Filter () function of the Extraction
Interface:
m_pSASExtraction -> Filter ();
CSerialSCSIExtraction::Filter ()
Prototype
HRESULT Filter()
Usage
Inputs
None
Return Value None
Description Call the Filter () function of the Extraction Interface to apply filtering on packets
of a loaded trace file.
Search/ Find Packets
To search/find any packet in a loaded trace file, use the FindPacket () function of the Serial SCSI
Extraction Interface:
BOOL bFound = m_pPacketExtraction -> FindPacket (
iFromPacketLayer,
nFromPacketIndex,
iToPacketLayer,
nToPacketIndex,
(SearchDirectionEnum) m_nRadioSearchDirectionForward,
m_bSearchIncludeFromPacket,
(
long
*) &bFoundItemIsFiltered,
&iFoundLayerID,
&nFoundPacketIndex);
CSerialSCSIExtraction::FindPacket ()
Prototype
HRESULT FindPacket (
short
iFromPacketLayer,
int
nFromPacketIndex,
short
iToPacketLayer,
int
nToPacketIndex, SearchDirectionEnum
eSearchDirection,
BOOL bContainGivenFromPacket, BOOL* pFoundItemIsFiltered,
short
* iFoundLayerID,
int
* pFoundPacketIndex, BOOL* pFound);
Usage
Inputs
short iFromPacketLayerID: Layer ID of start packet search
int nFromPacketIndex: Start packet index in a layer
short iToPacketLayerID: Layer ID of end packet search