Documentation

Create Ethernet Packet

Create Ethernet packet based on the MAC address and EtherType provided

  • Library:
  • Ethernet

Description

To create the Ethernet packets that you want to transfer, use the Create Ethernet Packet block.

Ports

Input

expand all

Data Types: uint8

Output

expand all

The parameter is a reference to the network buffer.

Parameters

expand all

Enter the MAC address of the target computer that receives the data.

Enter a value that represents either the EtherType or the use of Ethernet length:

  • EtherType — If you are creating Ethernet packets that use EtherType values, to specify which prototype the Ethernet frame transfers, enter a valid EtherType value.

  • Ethernet length — If you are creating Ethernet packets that use Ethernet lengths, enter 0.

Introduced in R2008b

Was this topic helpful?