mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Correct function definitions
This commit is contained in:
parent
abeb1ca49d
commit
0a44e20c34
|
@ -17,7 +17,7 @@ namespace PacketReader::IP
|
||||||
{
|
{
|
||||||
return (dscp >> 2) & 0x3F;
|
return (dscp >> 2) & 0x3F;
|
||||||
}
|
}
|
||||||
void IP_Packet::GetDscpValue(u8 value)
|
void IP_Packet::SetDscpValue(u8 value)
|
||||||
{
|
{
|
||||||
dscp = (dscp & ~(0x3F << 2)) | ((value & 0x3F) << 2);
|
dscp = (dscp & ~(0x3F << 2)) | ((value & 0x3F) << 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ namespace PacketReader::IP
|
||||||
* bit0: Set to zero
|
* bit0: Set to zero
|
||||||
*/
|
*/
|
||||||
u8 GetDscpValue();
|
u8 GetDscpValue();
|
||||||
void GetDscpValue(u8 value);
|
void SetDscpValue(u8 value);
|
||||||
|
|
||||||
/* 2 bits
|
/* 2 bits
|
||||||
* In TOS, defined as follows
|
* In TOS, defined as follows
|
||||||
|
|
|
@ -43,9 +43,5 @@ namespace PacketReader::IP::UDP::DNS
|
||||||
virtual void WriteBytes(u8* buffer, int* offset);
|
virtual void WriteBytes(u8* buffer, int* offset);
|
||||||
|
|
||||||
virtual ~DNS_ResponseEntry(){};
|
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
|
} // namespace PacketReader::IP::UDP::DNS
|
Loading…
Reference in New Issue