The PacketFilters test fails because it has apparently discovered a whole
load of invalid filters. This, as it turns out, is not because of any bug
in the query OID code but rather in the set OID code. The code as it stands
returns success even for setting an invalid filter, and this is why the
test believes those filters are enabled.
This patch stops ignoring the resturn code of AdapterSetPacketFilter and
hence fixes the test.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
case OID_GEN_CURRENT_PACKET_FILTER:
BytesNeeded = sizeof(ULONG);
if (BufferLength == BytesNeeded) {
- AdapterSetPacketFilter(Adapter,
- (PULONG)Buffer);
+ ndisStatus = AdapterSetPacketFilter(Adapter,
+ (PULONG)Buffer);
BytesRead = sizeof(ULONG);
}
break;