1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

Kernel: Protect ARP table with spinlock instead of mutex

This commit is contained in:
Andreas Kling 2022-02-03 01:07:57 +01:00
parent 248832f438
commit 6fbb924bbf
3 changed files with 9 additions and 9 deletions

View file

@ -33,6 +33,6 @@ enum class AllowUsingGateway {
RoutingDecision route_to(IPv4Address const& target, IPv4Address const& source, RefPtr<NetworkAdapter> const through = nullptr, AllowUsingGateway = AllowUsingGateway::Yes);
MutexProtected<HashMap<IPv4Address, MACAddress>>& arp_table();
SpinlockProtected<HashMap<IPv4Address, MACAddress>>& arp_table();
}