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) |
![]() | |
int | num_bytes_to_read () |
void | read_bytes (void *buf) |
void | 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().
|
virtual |
Arguments to be appended to the qemu argument vector when qemu is forked to simulate the computer.
Implements adevs::QemuDeviceModel.
|
virtual |
Cause data to arrive at the external, physical port. This call will block if the corresponding write to the underlying file descriptor blocks.
Implements adevs::QemuDeviceModel.