From b84444cbb3ea180d5fe6e421c66d8fade849e261 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Tue, 11 Jan 2022 22:43:07 +0200 Subject: [PATCH] Kernel: Move IPv4SocketTuple into the Kernel namespace This class was accidentally declared in the global namespace. --- Kernel/Net/IPv4SocketTuple.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Kernel/Net/IPv4SocketTuple.h b/Kernel/Net/IPv4SocketTuple.h index f731dfc13f..e3beb927cb 100644 --- a/Kernel/Net/IPv4SocketTuple.h +++ b/Kernel/Net/IPv4SocketTuple.h @@ -13,6 +13,8 @@ #include #include +namespace Kernel { + class IPv4SocketTuple { public: IPv4SocketTuple(IPv4Address local_address, u16 local_port, IPv4Address peer_address, u16 peer_port) @@ -48,11 +50,13 @@ private: u16 m_peer_port { 0 }; }; +} + namespace AK { template<> -struct Traits : public GenericTraits { - static unsigned hash(const IPv4SocketTuple& tuple) +struct Traits : public GenericTraits { + static unsigned hash(const Kernel::IPv4SocketTuple& tuple) { auto h1 = pair_int_hash(tuple.local_address().to_u32(), tuple.local_port()); auto h2 = pair_int_hash(tuple.peer_address().to_u32(), tuple.peer_port());