Kernel: Implement is_zero for RoutingDecision

This commit is contained in:
Conrad Pankoff 2019-08-29 11:18:38 +10:00 committed by Andreas Kling
commit b15a7c435f
Notes: sideshowbarker 2024-07-19 12:26:57 +09:00
5 changed files with 11 additions and 4 deletions

View file

@ -170,7 +170,7 @@ ssize_t IPv4Socket::sendto(FileDescription&, const void* data, size_t data_lengt
}
auto routing_decision = route_to(m_peer_address, m_local_address);
if (!routing_decision.adapter || routing_decision.next_hop.is_zero())
if (routing_decision.is_zero())
return -EHOSTUNREACH;
if (m_local_address.to_u32() == 0)