diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-04-06 14:52:33 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-04-06 14:52:33 +0200 |
| commit | 32f75625830660468287de0f213baee760fc6384 (patch) | |
| tree | aaa8286ee13a4188d826d4efd59482c7b1aa0e73 /Private/Source/Network | |
| parent | 422b8029eba71b6fbb6b3dcb386b8e115bbd08ef (diff) | |
:boom: Breaking changes, disk API improvemenets and bringing support for
more drivers...
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/Source/Network')
| -rw-r--r-- | Private/Source/Network/IP.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Private/Source/Network/IP.cxx b/Private/Source/Network/IP.cxx index 04e5247d..06421c21 100644 --- a/Private/Source/Network/IP.cxx +++ b/Private/Source/Network/IP.cxx @@ -8,13 +8,13 @@ #include <NewKit/Utils.hpp> namespace NewOS { -char* RawIPAddress::Address() { return m_Addr; } +char* RawIPAddress::Address() { return fAddr; } -RawIPAddress::RawIPAddress(char bytes[4]) { rt_copy_memory(bytes, m_Addr, 4); } +RawIPAddress::RawIPAddress(char bytes[4]) { rt_copy_memory(bytes, fAddr, 4); } bool RawIPAddress::operator==(const RawIPAddress& ipv4) { for (Size index = 0; index < 4; ++index) { - if (ipv4.m_Addr[index] != m_Addr[index]) return false; + if (ipv4.fAddr[index] != fAddr[index]) return false; } return true; @@ -22,7 +22,7 @@ bool RawIPAddress::operator==(const RawIPAddress& ipv4) { bool RawIPAddress::operator!=(const RawIPAddress& ipv4) { for (Size index = 0; index < 4; ++index) { - if (ipv4.m_Addr[index] == m_Addr[index]) return false; + if (ipv4.fAddr[index] == fAddr[index]) return false; } return true; @@ -34,11 +34,11 @@ char& RawIPAddress::operator[](const Size& index) { static char IP_PLACEHOLDER = '0'; if (index > 4) return IP_PLACEHOLDER; - return m_Addr[index]; + return fAddr[index]; } RawIPAddress6::RawIPAddress6(char bytes[8]) { - rt_copy_memory(bytes, m_Addr, 8); + rt_copy_memory(bytes, fAddr, 8); } char& RawIPAddress6::operator[](const Size& index) { @@ -47,12 +47,12 @@ char& RawIPAddress6::operator[](const Size& index) { static char IP_PLACEHOLDER = '0'; if (index > 8) return IP_PLACEHOLDER; - return m_Addr[index]; + return fAddr[index]; } bool RawIPAddress6::operator==(const RawIPAddress6& ipv6) { for (SizeT index = 0; index < 8; ++index) { - if (ipv6.m_Addr[index] != m_Addr[index]) return false; + if (ipv6.fAddr[index] != fAddr[index]) return false; } return true; @@ -60,7 +60,7 @@ bool RawIPAddress6::operator==(const RawIPAddress6& ipv6) { bool RawIPAddress6::operator!=(const RawIPAddress6& ipv6) { for (SizeT index = 0; index < 8; ++index) { - if (ipv6.m_Addr[index] == m_Addr[index]) return false; + if (ipv6.fAddr[index] == fAddr[index]) return false; } return true; |
