Create Ethernet Packet

Create Ethernet packet based on the MAC address and EtherType provided

  • Library:
  • Simulink Real-Time / Ethernet


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



expand all

Data Types: uint8


expand all

The parameter is a reference to the network buffer.


expand all

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

Programmatic Use

Block Parameter: DstMac

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.

Programmatic Use

Block Parameter: EtherType

See Also

External Websites

Introduced in R2008b