mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
28 lines
634 B
C++
28 lines
634 B
C++
// SPDX-FileCopyrightText: 2002-2026 PCSX2 Dev Team
|
|
// SPDX-License-Identifier: GPL-3.0+
|
|
|
|
#pragma once
|
|
|
|
#include "common/Pcsx2Defs.h"
|
|
|
|
namespace PacketReader
|
|
{
|
|
#pragma pack(push, 1)
|
|
struct MAC_Address
|
|
{
|
|
union
|
|
{
|
|
u8 bytes[6];
|
|
struct
|
|
{
|
|
u32 integer03;
|
|
u16 short45;
|
|
} u;
|
|
};
|
|
|
|
bool operator==(const MAC_Address& other) const { return (this->u.integer03 == other.u.integer03) && (this->u.short45 == other.u.short45); }
|
|
bool operator!=(const MAC_Address& other) const { return (this->u.integer03 != other.u.integer03) || (this->u.short45 != other.u.short45); }
|
|
};
|
|
#pragma pack(pop)
|
|
} // namespace PacketReader
|