mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel: Implement is_zero for RoutingDecision
This commit is contained in:
parent
302d521485
commit
b15a7c435f
Notes:
sideshowbarker
2024-07-19 12:26:57 +09:00
Author: https://github.com/deoxxa
Commit: b15a7c435f
Pull-request: https://github.com/SerenityOS/serenity/pull/499
Reviewed-by: https://github.com/awesomekling
5 changed files with 11 additions and 4 deletions
|
@ -11,6 +11,11 @@ Lockable<HashMap<IPv4Address, MACAddress>>& arp_table()
|
|||
return *the;
|
||||
}
|
||||
|
||||
bool RoutingDecision::is_zero() const
|
||||
{
|
||||
return adapter.is_null() || next_hop.is_zero();
|
||||
}
|
||||
|
||||
RoutingDecision route_to(const IPv4Address& target, const IPv4Address& source)
|
||||
{
|
||||
auto target_addr = target.to_u32();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue