summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/NetworkKit/MAC.h
blob: 407dfd8d26dce4a33beb380fb256663187f387ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* -------------------------------------------

	Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.

------------------------------------------- */

#pragma once

#include <NewKit/Array.h>
#include <NewKit/Defines.h>
#include <NewKit/KString.h>

#define kMACAddrLen (12)

namespace NeOS
{
	class MacAddressGetter;

	/// \brief This retrieves the MAC address of the device.
	/// \note Listens for the current NIC.
	class MacAddressGetter final
	{
	public:
		MacAddressGetter() = default;
		~MacAddressGetter() = default;

		NE_COPY_DEFAULT(MacAddressGetter);

	public:
		Array<WideChar, kMACAddrLen>& AsBytes();

	private:
		Array<WideChar, kMACAddrLen> fMacAddress;

	};

} // namespace NeOS