mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
Net: Make NetworkAdapter reference-counted
The idea behind WeakPtr<NetworkAdapter> was to support hot-pluggable network adapters, but on closer thought, that's super impractical so let's not go down that road.
This commit is contained in:
parent
f3a5985bb2
commit
a3f39fe789
7 changed files with 19 additions and 19 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
struct RoutingDecision
|
||||
{
|
||||
WeakPtr<NetworkAdapter> adapter;
|
||||
RefPtr<NetworkAdapter> adapter;
|
||||
MACAddress next_hop;
|
||||
|
||||
bool is_zero() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue