mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
Kernel: Add list-compatible constructor for MACAddress
This commit is contained in:
parent
23e8715022
commit
eb01735ec5
|
@ -13,6 +13,15 @@ public:
|
|||
{
|
||||
memcpy(m_data, data, 6);
|
||||
}
|
||||
MACAddress(u8 a, u8 b, u8 c, u8 d, u8 e, u8 f)
|
||||
{
|
||||
m_data[0] = a;
|
||||
m_data[1] = b;
|
||||
m_data[2] = c;
|
||||
m_data[3] = d;
|
||||
m_data[4] = e;
|
||||
m_data[5] = f;
|
||||
}
|
||||
~MACAddress() {}
|
||||
|
||||
u8 operator[](int i) const
|
||||
|
|
Loading…
Reference in a new issue