fixed bug in attaching nics to hosts, changed documentation format and generator (buggy but usable)

This commit is contained in:
2025-09-14 00:40:53 -04:00
parent 9ab64e18a4
commit c4141cd683
40 changed files with 5223 additions and 577 deletions

View File

@@ -1,8 +1,9 @@
# network/switch/unicast_table.h
## class UnicastTable — public interface
### `UnicastTable() = default;`
### `std::vector<PortId> get_port_list(NodeId dst_node, PortId dst_port) const;`
### `bool add_entry(NodeId dst_node, PortId dst_port, PortId out_port);`
### `bool delete_entry(NodeId dst_node, PortId dst_port, PortId out_port);`
## `UnicastTable::UnicastTable`
`UnicastTable() = default`
## `UnicastTable::add_entry`
`bool add_entry(NodeId dst_node, PortId dst_port, PortId out_port)`
## `UnicastTable::delete_entry`
`bool delete_entry(NodeId dst_node, PortId dst_port, PortId out_port)`
## `UnicastTable::get_port_list`
`std::vector<PortId> get_port_list(NodeId dst_node, PortId dst_port) const`