Pseudo Ethernet device for packet injection based on pcap file input.
conf_object, log_object, ethernet_common
- cell-change
- Notifier that is triggered after the object's cell was changed.
- object-delete
- Notifier that is triggered just before Simics object is deleted.
- queue-change
- Notifier that is triggered after the object's clock was changed. New clock can be obtained with the SIM_object_clock function.
-
info
– print information about the object
-
start
– start pcap playback
-
status
– print status of the object
-
stop
– stop pcap playback
-
append_crc
-
Optional attribute;
read/write access; type:
b
Assume that the CRC field of the Ethernet frame read from the pcap file is missing and append four zero bytes at the end of the frame before sending it. The simulation will handle the packet as if the CRC was correct
-
auto_restart
-
Optional attribute;
read/write access; type:
b
True if injection will be automatically restarted when pcap is depleted.
-
connection
-
Optional attribute;
read/write access; type:
o|n
The Ethernet link endpoint or Ethernet device that this injector is connected to.
-
pcapfile
-
Optional attribute;
read/write access; type:
s|n
Pcap file to inject packets from.
-
rate_multiplier
-
Optional attribute;
read/write access; type:
f
Modifies the rate/frequency that packets are injected by the float value defined. A value of 2.0 injects packets twice as fast, and a value of 0.5 injects packets at half the speed, relative to the timestamps in the source pcap file
-
sent
-
Optional attribute;
read/write access; type:
i
Number of sent packets.
-
start
-
Pseudo attribute;
read/write access; type:
i
Controls starting and stopping of pcap packet playback. When set to non zero, the packet playback will start from the beginning.
eth-injector