Frames injected using the 'inject_packet' will get a correctly calculated CRC added at the end when this attribute is set to 1 (default). When set to 0, the user has to supply a CRC field with the injected frame. Note that you must always provide room for the CRC field, even when this attribute is set to 1.
Address on the MII management bus.
(Obsolete - see the "last-frame" attribute instead). The packet that is currently about to be sent or received. The format is a raw Ethernet frame. This attribute is only valid in Ethernet_Transmit and Ethernet_Receive hap callbacks. It is possible to override the packet by assigning this attribute. The device will drop the current packet if the attribute is set to Nil, or with data of zero length.
Set to 1 for full duplex (0 for half duplex).
Attribute used to send a packet to the network device. Writing this attribute at any time injects a new packet into the device (without involving the network simulation). Injecting a packet copies the packet data, allowing the caller to reuse or dispose of the buffer used for creating the packet, after the attribute is written.
The frame that is currently about to be sent or received. The format is a raw Ethernet frame. This attribute is only valid in Ethernet_Transmit and Ethernet_Receive hap callbacks. It is possible to override the packet by assigning this attribute. The device will drop the current packet if the attribute is set to Nil, or with data of zero length.
The Ethernet link that the network device is connected to.
The link speed (usually 10 or 100 Mbit/s).
The status of the link - 0 when completely unconnected, 1 when connected but down, and 2 when connected and up.
Set to a media access controller (MAC) object, implementing the ieee_802_3_mac_interface_t.
Ethernet (MAC) address of the network interface.
Describes where the outgoing MDIO signal should be connected
If set to 1, the device will calculate and include an Ethernet CRC on all transmitted frames, and check the CRC on received frames.
Obsolete attribute. Use link instead.
Recorder object that allows recording and later playback of network traffic to the interface.
The MII management register set as described in IEEE 802.3.
This value determined how reliable an established connection is. If set to N it means that with a probability of 1 out of N a package will be lost (not sent to the receiver). The default value is 0 which means that no packages will be lost.
The seed value for the randomization of packet loss. See the reliability attribute
MII Management Interface serial communication state.
MII Management Interface serial communication state.
MII Management Interface serial communication state.
MII Management Interface serial communication state.
MII Management Interface serial communication state.
The transmit bandwidth of the network interface in bits per second. The network interface will limit the rate at which it sends packets to remain below this bandwidth. Set to 0 for unlimited bandwidth.
The earliest time at which that the network interface may send another packet. Used for transmit bandwidth limitation.
connect | connect to a simulated Ethernet link |
disconnect | disconnect from simulated link |
info | print information about the device |
status | print status of the device |