summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-21 03:20:26 +0300
committerAndrei Karas <akaras@inbox.ru>2019-04-07 22:38:34 +0300
commite918e4d9a8a56cc6a0a653fa6398d731484496c7 (patch)
tree9f90a85e4adf0140fab745f275f5905ce1b932c8 /src/map/packets_struct.h
parent072b831c2cf88f3161c0a0c2e4742d8f30f9701a (diff)
downloadhercules-e918e4d9a8a56cc6a0a653fa6398d731484496c7.tar.gz
hercules-e918e4d9a8a56cc6a0a653fa6398d731484496c7.tar.bz2
hercules-e918e4d9a8a56cc6a0a653fa6398d731484496c7.tar.xz
hercules-e918e4d9a8a56cc6a0a653fa6398d731484496c7.zip
Add ZC_PING and CZ_PING packets
For supported packet version, from now server send ping packets to client.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 42b11b718..b12193997 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -3160,6 +3160,20 @@ struct PACKET_CZ_CLIENT_VERSION {
DEFINE_PACKET_HEADER(CZ_CLIENT_VERSION, 0x044a);
#endif
+#if PACKETVER_MAIN_NUM >= 20190227 || PACKETVER_RE_NUM >= 20190220 || PACKETVER_ZERO_NUM >= 20190220
+struct PACKET_CZ_PING {
+ int16 packetType;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(CZ_PING, 0x0b1c);
+#endif
+
+#if PACKETVER_MAIN_NUM >= 20190213 || PACKETVER_RE_NUM >= 20190213 || PACKETVER_ZERO_NUM >= 20190130
+struct PACKET_ZC_PING {
+ int16 packetType;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(ZC_PING, 0x0b1d);
+#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