diff options
Diffstat (limited to 'dev/kernel/NetworkKit')
| -rw-r--r-- | dev/kernel/NetworkKit/IP.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dev/kernel/NetworkKit/IP.h b/dev/kernel/NetworkKit/IP.h index 0b872352..0468d579 100644 --- a/dev/kernel/NetworkKit/IP.h +++ b/dev/kernel/NetworkKit/IP.h @@ -18,22 +18,22 @@ class IPFactory; class RawIPAddress final { private: - explicit RawIPAddress(char bytes[4]); + explicit RawIPAddress(UInt8 bytes[4]); ~RawIPAddress() = default; RawIPAddress& operator=(const RawIPAddress&) = delete; RawIPAddress(const RawIPAddress&) = default; public: - Char* Address(); + UInt8* Address(); - Char& operator[](const Size& index); + UInt8& operator[](const Size& index); BOOL operator==(const RawIPAddress& ipv6); BOOL operator!=(const RawIPAddress& ipv6); private: - Char fAddr[4]; + UInt8 fAddr[4]; friend IPFactory; // it is the one creating these addresses, thus this // is why the constructors are private. @@ -44,22 +44,22 @@ class RawIPAddress final { */ class RawIPAddress6 final { private: - explicit RawIPAddress6(char Bytes[8]); + explicit RawIPAddress6(UInt8 Bytes[16]); ~RawIPAddress6() = default; RawIPAddress6& operator=(const RawIPAddress6&) = delete; RawIPAddress6(const RawIPAddress6&) = default; public: - char* Address() { return fAddr; } + UInt8* Address() { return fAddr; } - char& operator[](const Size& index); + UInt8& operator[](const Size& index); bool operator==(const RawIPAddress6& ipv6); bool operator!=(const RawIPAddress6& ipv6); private: - char fAddr[8]; + UInt8 fAddr[16]; friend IPFactory; }; |
