mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
Kernel: Implement is_zero for RoutingDecision
This commit is contained in:
committed by
Andreas Kling
parent
302d521485
commit
b15a7c435f
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user