From 0a44e20c34e2afee691ebd4f9de57b45066b2605 Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Tue, 3 Dec 2024 22:28:12 +0000 Subject: [PATCH] DEV9: Correct function definitions --- pcsx2/DEV9/PacketReader/IP/IP_Packet.cpp | 2 +- pcsx2/DEV9/PacketReader/IP/IP_Packet.h | 2 +- pcsx2/DEV9/PacketReader/IP/UDP/DNS/DNS_Classes.h | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pcsx2/DEV9/PacketReader/IP/IP_Packet.cpp b/pcsx2/DEV9/PacketReader/IP/IP_Packet.cpp index ee9e6ae7f8..713eb16391 100644 --- a/pcsx2/DEV9/PacketReader/IP/IP_Packet.cpp +++ b/pcsx2/DEV9/PacketReader/IP/IP_Packet.cpp @@ -17,7 +17,7 @@ namespace PacketReader::IP { return (dscp >> 2) & 0x3F; } - void IP_Packet::GetDscpValue(u8 value) + void IP_Packet::SetDscpValue(u8 value) { dscp = (dscp & ~(0x3F << 2)) | ((value & 0x3F) << 2); } diff --git a/pcsx2/DEV9/PacketReader/IP/IP_Packet.h b/pcsx2/DEV9/PacketReader/IP/IP_Packet.h index be6efd53c6..6b134b0827 100644 --- a/pcsx2/DEV9/PacketReader/IP/IP_Packet.h +++ b/pcsx2/DEV9/PacketReader/IP/IP_Packet.h @@ -86,7 +86,7 @@ namespace PacketReader::IP * bit0: Set to zero */ u8 GetDscpValue(); - void GetDscpValue(u8 value); + void SetDscpValue(u8 value); /* 2 bits * In TOS, defined as follows diff --git a/pcsx2/DEV9/PacketReader/IP/UDP/DNS/DNS_Classes.h b/pcsx2/DEV9/PacketReader/IP/UDP/DNS/DNS_Classes.h index ecb2dd214b..9875db1be5 100644 --- a/pcsx2/DEV9/PacketReader/IP/UDP/DNS/DNS_Classes.h +++ b/pcsx2/DEV9/PacketReader/IP/UDP/DNS/DNS_Classes.h @@ -43,9 +43,5 @@ namespace PacketReader::IP::UDP::DNS virtual void WriteBytes(u8* buffer, int* offset); virtual ~DNS_ResponseEntry(){}; - - private: - void ReadDNSString(u8* buffer, int* offset, std::string* value); - void WriteDNSString(u8* buffer, int* offset, std::string value); }; } // namespace PacketReader::IP::UDP::DNS \ No newline at end of file