adevs
|
#include <adevs_qemu.h>
Public Member Functions | |
QemuNic (std::string mac_addr="") | |
void | append_qemu_arguments (std::vector< std::string > &args) |
void | write_bytes (void *data, int num_bytes) |
Write bytes to the network card. | |
~QemuNic () | |
Destructor. | |
![]() | |
int | num_bytes_to_read () |
void | read_bytes (void *buf) |
virtual | ~QemuDeviceModel () |
Destructor. | |
QemuDeviceModel () | |
Constructor. | |
void | read_loop () |
Called by the reading thread to execute the read loop. | |
void | init_func () |
Protected Member Functions | |
io_buffer * | read () |
void | initialize_io_structures () |
![]() | |
void | start () |
A model of a network interface card. This will connect to a QEMU network card emulator via the file descriptor provided by get_qemu_fd().
adevs::QemuNic::QemuNic | ( | std::string | mac_addr = "" | ) |
Create a network card. If you need a specific MAC address that can be supplied as an argument.
mac_addr | Optional MAC address for card |
|
virtual |
Appends arguments that qemu needs to setup the network device.
Implements adevs::QemuDeviceModel.