DEV9: Correct function definitions

This commit is contained in:
TheLastRar 2024-12-03 22:28:12 +00:00 committed by Ty
parent abeb1ca49d
commit 0a44e20c34
3 changed files with 2 additions and 6 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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