Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?