Filter Ethernet packets based on EtherType
To filter network buffer packets by their EtherType values, use the Filter Type block. See Filter Type and Filter Address Blocks for cautions on setting the parameters for this block.
Network Buffer— Network buffer containing packet data
The parameter is a reference to the network buffer.
Match Length— Network buffer chain containing packets that match length filter
One port receives packets with EtherType values within
To activate this port, select parameter Match Length (1-1500).
Match [Type (#)]— Network buffer chain containing packets that match filter
If you specify one Ethertype, one port appears with the name
The block directs packets with this EtherType to port
If you specify more than one EtherType, multiple ports appear,
matched to the values in parameter EtherType.
The block directs packets with the first EtherType to
Type (1), with the second EtherType to
Type (2), and so on.
The port count depends on how many EtherTypes appear in parameter EtherType.
Remainder— Network buffer chain containing packets that do not match filter
Packets that do not meet the filter criteria appear at this port.
To activate this port, clear Drop non-matches.
Match Length (1-1500)— Match packets with EtherType values within
To match packets whose EtherType values
fall within the range
1–1500, select this
EtherType— EtherTypes on which to filter
[hex2dec('0000')](default) | vector
Enter a vector of EtherTypes on which you want to filter.
Drop non-matches— Discard packets that do not match filter criteria
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.