driver::load_network_stack
Signature: void driver::load_network_stack()
Description: Loads the network stack
Return: void
nic_device::nic_device
Signature: nic_device::nic_device()
Attributes: undefined
Description: Constructor for the nic device class
nic_device::~nic_device
Signature: nic_device::~nic_device()
Attributes: undefined
Description: Destructor for the nic device class
nic_device::send
Signature: void nic_device::send(uint8_t* data, int32_t len)
Description: Sends a packet
Parameters:
uint8_t* data
int32_t len
Return: void
nic_device::register_nic_data_manager
Signature: void nic_device::register_nic_data_manager(nic_data_manager* _nic_data_manager)
Description: Registers a nic data manager
Parameters:
nic_data_manager* _nic_data_manager
Return: void
nic_device::get_mac
Signature: uint64_t nic_device::get_mac()
Description: Gets the mac address of the nic
Return: uint64_t
nic_device::get_ip
Signature: uint32_t nic_device::get_ip()
Description: Gets the ip address of the nic
Return: uint32_t
nic_device::set_ip
Signature: void nic_device::set_ip(uint32_t ip)
Description: Sets the ip address of the nic
Parameters:
Return: void
nic_device::load_network_stack
Signature: void nic_device::load_network_stack(net::network_stack_t* network_stack)
Description: Loads the network stack
Parameters:
net::network_stack_t* network_stack
Return: void
nic_data_manager::nic_data_manager
Signature: nic_data_manager::nic_data_manager(int id)
Attributes: undefined
Description: Constructor for the nic data manager class
Parameters:
nic_data_manager::~nic_data_manager
Signature: nic_data_manager::~nic_data_manager()
Attributes: undefined
Description: Destructor for the nic data manager class
nic_data_manager::send
Signature: void nic_data_manager::send(uint8_t* data, int32_t len)
Description: Sends a packet
Parameters:
uint8_t* data
int32_t len
Return: void
nic_data_manager::recv
Signature: bool nic_data_manager::recv(uint8_t* data, int32_t len)
Description: Receives a packet
Parameters:
uint8_t* data
int32_t len
Return: bool
nic_driver_manager::nic_driver_manager
Signature: nic_driver_manager::nic_driver_manager()
Attributes: undefined
Description: Constructor for the nic driver manager class
nic_driver_manager::add_nic
Signature: void nic_driver_manager::add_nic(nic_device* nic)
Description: Adds a nic to the nic driver manager
Parameters:
Return: void
nic_driver_manager::get_nic
Signature: nic_device* nic_driver_manager::get_nic(int nic_id)
Description: Gets a nic from the nic driver manager
Parameters:
Return: nic_device*
Show file on GitHub