Packet Sniffer SDK DLL Edition

HNAdapter :: Properties :: AdpSetMacFilter

 Previous Next

Sets the MAC filter for the network adapter.

Syntax:

DWORD __stdcall AdpSetMacFilter(HANDLE hAdp, DWORD MacFilter);

Parameters:

hAdp

[in] HNAdapter object handle.

MacFilter

[in] This parameter is defined in the HNMacFilter enumeration.

Return values:

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

Description:

Use AdpSetMacFilter to set up the current MAC filter value. MAC filter allows the 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