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.
Control and status register 0.
Control and status register 1.
Control and status register 2.
Control and status register 3.
(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 non-zero when the device instance is initialized (boolean).
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.
Interrupt device implementing the simple-interrupt interface.
Keeps track of whether an interrupt is currently issued or not.
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.
Last receive descriptor.
Last transmit descriptor.
The Ethernet link that the network device is connected to.
64-bit logical address mask.
Ethernet (MAC) address of the network interface.
If set to 1, the mac address cannot be changed by the target software, i.e. it is set in the ROM.
Memory space object used for DMA memory access.
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.
Number of received packets.
Number of sent packets.
Specifies how often (in seconds) that the device polls for new packets from the host to send out on the network.
Register address port (RAP), selecting one of the control and status registers.
Recorder object that allows recording and later playback of network traffic to the interface.
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
Receive descriptor ring length.
Receive descriptor ring address.
The time (in seconds) between a packet is sent from the device until the processor is notified with an interrupt.
Transmit descriptor ring length.
Transmit descriptor ring address.
|connect||connect to a simulated Ethernet link|
|disconnect||disconnect from simulated link|
|info||print information about the device|
|status||print status of the device|