diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-24 03:27:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-12-12 21:18:06 +0300 |
commit | 1f7f90156632811bcf7f0102325ba504428bc44a (patch) | |
tree | 8e7624eecafc85ac9a496b1272a2ccafba16e508 /src/login/packets_ac_struct.h | |
parent | 30cf149e9db5b9e33d819b831f78c02eeb586d39 (diff) | |
download | hercules-1f7f90156632811bcf7f0102325ba504428bc44a.tar.gz hercules-1f7f90156632811bcf7f0102325ba504428bc44a.tar.bz2 hercules-1f7f90156632811bcf7f0102325ba504428bc44a.tar.xz hercules-1f7f90156632811bcf7f0102325ba504428bc44a.zip |
Update packet AC_LOGIN_OTP.
Diffstat (limited to 'src/login/packets_ac_struct.h')
-rw-r--r-- | src/login/packets_ac_struct.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/login/packets_ac_struct.h b/src/login/packets_ac_struct.h index 6ec92b38f..c9fb04f26 100644 --- a/src/login/packets_ac_struct.h +++ b/src/login/packets_ac_struct.h @@ -118,6 +118,37 @@ struct PACKET_AC_REQ_MOBILE_OTP { DEFINE_PACKET_HEADER(AC_REQ_MOBILE_OTP, 0x09a2); #endif +#if PACKETVER_MAIN_NUM >= 20171213 || PACKETVER_RE_NUM >= 20171213 || PACKETVER_ZERO_NUM >= 20171808 +// AC_LOGIN_OTP2 +struct PACKET_AC_LOGIN_OTP { + int16 packet_id; + int16 packet_len; + int32 loginFlag; + char loginFlag2[20]; + char token[]; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(AC_LOGIN_OTP, 0x0ae3); +#elif PACKETVER_ZERO_NUM >= 20171123 +// AC_LOGIN_OTP2 +struct PACKET_AC_LOGIN_OTP { + int16 packet_id; + int16 packet_len; + int32 loginFlag; + char loginFlag2[6]; + char token[]; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(AC_LOGIN_OTP, 0x0ae3); +#elif PACKETVER_MAIN_NUM >= 20170621 || PACKETVER_RE_NUM >= 20170621 || defined(PACKETVER_ZERO) +// AC_LOGIN_OTP1 +struct PACKET_AC_LOGIN_OTP { + int16 packet_id; + int16 packet_len; + int32 loginFlag; + char token[]; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(AC_LOGIN_OTP, 0x0ad1); +#endif + #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute #pragma pack(pop) #endif // not NetBSD < 6 / Solaris |