Filter Address

Filter Ethernet packets based on MAC address

  • Library:
  • Simulink Real-Time / Ethernet


To filter network buffer packets by their MAC addresses, use the Filter Address block. See Filter Type and Filter Address Blocks for cautions on setting the parameters for this block.



expand all

The parameter is a reference to the network buffer.


expand all

If you specify one MAC address, one port appears with the name Match. The block directs packets with this MAC address to port Match.

If you specify more than one MAC address, multiple ports appear, matched to the values in parameter MAC Address. The block directs packets with the first address to Match Addr (1), with the second address to Match Addr (2), and so on.


The port count depends on how many MAC addresses appear in parameter MAC Address.

Packets that do not meet the filter criteria appear at this port.


To activate this port, clear Drop non-matches.


expand all

Enter a cell array that contains the MAC addresses for the filter.

Programmatic Use

Block Parameter: Address

To discard packets that do not match the filter criteria, select this parameter.

To output packets that do not match the filter criteria, clear this parameter.

Programmatic Use

Block Parameter: Drop

To filter addresses for the source address, clear this check box (default).

To filter addresses for the destination address, select this check box.

Programmatic Use

Block Parameter: Dst

Introduced in R2008b