Kernel: Make Route's operator== overload const

This commit is contained in:
brapru 2022-04-29 22:54:06 -04:00 committed by Andreas Kling
parent d83f2e2ea6
commit 863c14c4f4
Notes: sideshowbarker 2024-07-17 11:26:05 +09:00

View File

@ -23,7 +23,7 @@ struct Route : public RefCounted<Route> {
{
}
bool operator==(Route const& other)
bool operator==(Route const& other) const
{
return destination == other.destination && gateway == other.gateway && netmask == other.netmask && adapter.ptr() == other.adapter.ptr();
}