This question refers to the filter.cpp sample code.
1. What is the exact purpose of the following filter:
// 3. Pass all packets (skipped by previous filters) without processing in user mode
// Common values
pFilters->m_StaticFilters[2].m_Adapter.QuadPart = 0; // applied to all adapters
pFilters->m_StaticFilters[2].m_ValidFields = 0;
pFilters->m_StaticFilters[2].m_FilterAction = FILTER_PACKET_PASS;
pFilters->m_StaticFilters[2].m_dwDirectionFlags = PACKET_FLAG_ON_RECEIVE | PACKET_FLAG_ON_SEND;
2. What happens if one has set several filters and does not terminate the filter table with such an entry?
3. What happens if the filter table contains one valid entry, then an all zeros entry, and then one more valid entries, assuming one has set
pFilters->m_TableSize = 3;
4. Will the first and the third entries still be processed?