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.
The number of packets left to send until traffic generation stops. A nil value means an unlimited number of packets.
(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.
IP address to send packets to.
Set to 1 to enable traffic generation.
IP address of gateway.
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.
IP address assigned to the device.
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.
Ethernet (MAC) address of the network interface.
If set to 1, the device will calculate and include an Ethernet CRC on all transmitted frames, and check the CRC on received frames.
Netmask defining the subnet for the device.
Obsolete attribute. Use link instead.
The size of data packets to send.
Number of packets per second to send.
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
Current state of traffic generator.
Total number of UDP packets received on the test port.
Total number of UDP packets transmitted on the test port.
|info||print information about the device|
|packet-rate||Set or display the packets per second rate|
|packet-size||Set or display the packet size|
|start||Start generating traffic|
|status||print status of the device|
|stop||Stop generating traffic|
If no rate is given, the current rate is displayed.
If no size is given, the current size is displayed.