Filter packets, Set filter data – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 153

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
How to Navigate through Trace File 153
Filter Packets
Filtering packets of a loaded trace file has two stages:
•
•
Set Filter Data
To set filter information data, first obtain a handle for the FilterInfo interface, by using the
GetFilterObject () function of the Serial SCSI Extraction Interface.
IDispatch* pTempInterface = (IDispatch*) m_pISerialSCSIExtraction
->
GetFilterObject ();
IFilterInfo* pFilterInfo = (IFilterInfo*) pTempInterface;
Then use that FilterInfo Interface object. Filter information data can be set using the following
functions (and their corresponding function prototypes).
pFilterInfo->put_PrimitiveFilterType(ID_PRIMITIVE_FILTER_TYPE_NOTHING);
STDMETHOD
(put_PrimitiveFilterType) (
/*[in]*/
PrimitiveFilterTypeEnum newVal);
STDMETHOD
(put_IsFilteredDescendpackets) (
/*[in]*/
BOOL bValue);
STDMETHOD
(put_PairHashAddressIsUsed) (
/*[in]*/
BOOL bPairHashAddrIsUsed);
STDMETHOD
(put_PairHashAddress) (
/*[in]*/
int
nHashSourceAddress,
/*[in]*/
int
nHashDestinationAddress,
/*[in]*/
BOOL bValue);
STDMETHOD
(put_FilteringType) (
/*[in]*/
FilteringTypeEnum eFilteringType);
STDMETHOD
(put_LogicOperator) (
/*[in]*/
short
newVal);