Packet Sniffer SDK DLL Edition

HNAdapter :: Properties :: AdpGetMacFilter

 Previous Next

Returns the MAC filter for the network adapter.

Syntax:

DWORD __stdcall AdpGetMacFilter(HANDLE hAdp);

Parameters:

hAdp

[in] HNAdapter object handle.

Return values:

If the function succeeds the return value will be the current MAC filter defined in the HNMacFilter enumeration.

Description:

Use AdpGetMacFilter to check the current MAC filter value. MAC filter allows filtering of network packets on the MAC addresses level.

The packets cannot be received at all if the MacFilter is set to 0.
See also:HNAdapter, HNMacFilter