mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-08 15:33:53 +00:00
* if for whatever reason the world server is not sending an address, use the local address it sends * Log when world is sending loginserver info * Force legacy mode when login host is login.eqemulator.net to avoid misconfigurations at least until things change * Add human IP translation to log messages * Sanitize world server name * Code cleanup and renaming member variables * More cleanup * Remove this-> * Validation constants * Key worldserver lookups by both longname and shortname both * Update allowed character list * Fix short_name API response field; add world_id to response * Shorten receiver verbosity * Remove unnecessary member variables from database and rename database to m_database * Adjust MAX_SERVER_VERSION_LENGTH * Fix indents
98 lines
2.1 KiB
C
98 lines
2.1 KiB
C
#ifndef EQEMU_LOGINSTRUCTURES_H
|
|
#define EQEMU_LOGINSTRUCTURES_H
|
|
|
|
#pragma pack(1)
|
|
|
|
struct LoginChatMessage_Struct {
|
|
short Unknown0;
|
|
uint32 Unknown1;
|
|
uint32 Unknown2;
|
|
uint32 Unknown3;
|
|
uint8 Unknown4;
|
|
char ChatMessage[1];
|
|
};
|
|
|
|
struct LoginLoginRequest_Struct {
|
|
short unknown1;
|
|
short unknown2;
|
|
short unknown3;
|
|
short unknown4;
|
|
short unknown5;
|
|
char unknown6[16];
|
|
};
|
|
|
|
struct LoginAccepted_Struct {
|
|
short unknown1;
|
|
short unknown2;
|
|
short unknown3;
|
|
short unknown4;
|
|
short unknown5;
|
|
char encrypt[80];
|
|
};
|
|
|
|
struct LoginFailedAttempts_Struct {
|
|
char message; //0x01
|
|
char unknown2[7]; //0x00
|
|
uint32 lsid;
|
|
char key[11]; //10 char + null term;
|
|
uint32 failed_attempts;
|
|
char unknown3[4]; //0x00, 0x00, 0x00, 0x03
|
|
char unknown4[4]; //0x00, 0x00, 0x00, 0x02
|
|
char unknown5[4]; //0xe7, 0x03, 0x00, 0x00
|
|
char unknown6[4]; //0xff, 0xff, 0xff, 0xff
|
|
char unknown7[4]; //0xa0, 0x05, 0x00, 0x00
|
|
char unknown8[4]; //0x00, 0x00, 0x00, 0x02
|
|
char unknown9[4]; //0xff, 0x03, 0x00, 0x00
|
|
char unknown10[4]; //0x00, 0x00, 0x00, 0x00
|
|
char unknown11[4]; //0x63, 0x00, 0x00, 0x00
|
|
char unknown12[4]; //0x01, 0x00, 0x00, 0x00
|
|
char unknown13[4]; //0x00, 0x00, 0x00, 0x00
|
|
char unknown14[4]; //0x00, 0x00, 0x00, 0x00
|
|
};
|
|
|
|
struct LoginLoginFailed_Struct {
|
|
short unknown1;
|
|
short unknown2;
|
|
short unknown3;
|
|
short unknown4;
|
|
short unknown5;
|
|
char unknown6[74];
|
|
};
|
|
|
|
struct ServerListHeader_Struct {
|
|
|
|
uint32 Unknown1;
|
|
uint32 Unknown2;
|
|
uint32 Unknown3;
|
|
uint32 Unknown4;
|
|
uint32 NumberOfServers;
|
|
};
|
|
|
|
struct PlayEverquestRequest_Struct {
|
|
uint16 Sequence;
|
|
uint32 Unknown1;
|
|
uint32 Unknown2;
|
|
uint32 ServerNumber;
|
|
};
|
|
|
|
struct PlayEverquestResponse_Struct {
|
|
uint8 Sequence;
|
|
uint8 Unknown1[9];
|
|
uint8 Allowed;
|
|
uint16 Message;
|
|
uint8 Unknown2[3];
|
|
uint32 ServerNumber;
|
|
};
|
|
|
|
static const unsigned char FailedLoginResponseData[] = {
|
|
0xf6, 0x85, 0x9c, 0x23, 0x57, 0x7e, 0x3e, 0x55, 0xb3, 0x4c, 0xf8, 0xc8, 0xcb, 0x77, 0xd5, 0x16,
|
|
0x09, 0x7a, 0x63, 0xdc, 0x57, 0x7e, 0x3e, 0x55, 0xb3, 0x4c, 0xf8, 0xc8, 0xcb, 0x77, 0xd5, 0x16,
|
|
0x09, 0x7a, 0x63, 0xdc, 0x57, 0x7e, 0x3e, 0x55, 0xb3
|
|
};
|
|
|
|
|
|
#pragma pack()
|
|
|
|
#endif
|
|
|