diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-15 04:38:09 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-15 04:38:09 +0100 |
| commit | cc6c1b752903cdc869bd29d609ed26f2618a8e69 (patch) | |
| tree | 2909fa0ca5d83576d1949774fd35f0e1a2ac0a8f /dev/Kernel | |
| parent | 6bbf5ad2058db4020ae20d6aba8f5b099dadc85f (diff) | |
Kernel: Networking code tweaks.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel')
| -rw-r--r-- | dev/Kernel/NetworkKit/IP.h | 10 | ||||
| -rw-r--r-- | dev/Kernel/src/Network/IPAddr.cc | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/dev/Kernel/NetworkKit/IP.h b/dev/Kernel/NetworkKit/IP.h index 0beae91e..4a552d87 100644 --- a/dev/Kernel/NetworkKit/IP.h +++ b/dev/Kernel/NetworkKit/IP.h @@ -27,15 +27,15 @@ namespace NeOS RawIPAddress(const RawIPAddress&) = default; public: - char* Address(); + Char* Address(); - char& operator[](const Size& index); + Char& operator[](const Size& index); - bool operator==(const RawIPAddress& ipv6); - bool operator!=(const RawIPAddress& ipv6); + BOOL operator==(const RawIPAddress& ipv6); + BOOL operator!=(const RawIPAddress& ipv6); private: - char fAddr[4]; + Char fAddr[4]; friend IPFactory; // it is the one creating these addresses, thus this // is why the constructors are private. diff --git a/dev/Kernel/src/Network/IPAddr.cc b/dev/Kernel/src/Network/IPAddr.cc index 1f9da6b9..6f523086 100644 --- a/dev/Kernel/src/Network/IPAddr.cc +++ b/dev/Kernel/src/Network/IPAddr.cc @@ -9,7 +9,7 @@ namespace NeOS { - char* RawIPAddress::Address() + Char* RawIPAddress::Address() { return fAddr; } @@ -19,7 +19,7 @@ namespace NeOS rt_copy_memory(bytes, fAddr, 4); } - bool RawIPAddress::operator==(const RawIPAddress& ipv4) + BOOL RawIPAddress::operator==(const RawIPAddress& ipv4) { for (Size index = 0; index < 4; ++index) { @@ -30,7 +30,7 @@ namespace NeOS return true; } - bool RawIPAddress::operator!=(const RawIPAddress& ipv4) + BOOL RawIPAddress::operator!=(const RawIPAddress& ipv4) { for (Size index = 0; index < 4; ++index) { @@ -41,7 +41,7 @@ namespace NeOS return true; } - char& RawIPAddress::operator[](const Size& index) + Char& RawIPAddress::operator[](const Size& index) { kout << "[RawIPAddress::operator[]] Fetching Index...\r"; |
