summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-12-15 15:23:04 +0100
committerGitHub <noreply@github.com>2019-12-15 15:23:04 +0100
commit8c4a85d6f9927826dc6a1815f0e6d197bcb2ed7f (patch)
treec1fc8e1e89e7f05f1645262d4a0f8f715290f289 /src/common
parent7d5ce7b3a33fb27cf838d863b8f017220abb624a (diff)
parentc5a7fac25b79669253c1f7a3ef5775ac362b6491 (diff)
downloadhercules-8c4a85d6f9927826dc6a1815f0e6d197bcb2ed7f.tar.gz
hercules-8c4a85d6f9927826dc6a1815f0e6d197bcb2ed7f.tar.bz2
hercules-8c4a85d6f9927826dc6a1815f0e6d197bcb2ed7f.tar.xz
hercules-8c4a85d6f9927826dc6a1815f0e6d197bcb2ed7f.zip
Merge pull request #2585 from 4144/updatepackets
Update packets up to 2019-12-11
Diffstat (limited to 'src/common')
-rw-r--r--src/common/packets/packets2019_len_main.h19
-rw-r--r--src/common/packets/packets2019_len_re.h19
-rw-r--r--src/common/packets/packets2019_len_zero.h19
-rw-r--r--src/common/packetsstatic_len.h4
4 files changed, 61 insertions, 0 deletions
diff --git a/src/common/packets/packets2019_len_main.h b/src/common/packets/packets2019_len_main.h
index 8c46258f8..9e333ff87 100644
--- a/src/common/packets/packets2019_len_main.h
+++ b/src/common/packets/packets2019_len_main.h
@@ -4294,7 +4294,11 @@ packetLen(0x0af8, 11)
packetLen(0x0af9, 6)
// Packet: 0x0afa
+#if PACKETVER >= 20191204
+packetLen(0x0afa, 58)
+#elif PACKETVER >= 20190109
packetLen(0x0afa, 54)
+#endif
// Packet: 0x0afb
packetLen(0x0afb, -1)
@@ -4846,5 +4850,20 @@ packetLen(0x0b66, 25)
packetLen(0x0b67, 32)
#endif
+// Packet: 0x0b68
+#if PACKETVER >= 20191120
+packetLen(0x0b68, 12)
+#endif
+
+// Packet: 0x0b69
+#if PACKETVER >= 20191127
+packetLen(0x0b69, 18)
+#endif
+
+// Packet: 0x0b6a
+#if PACKETVER >= 20191204
+packetLen(0x0b6a, -1)
+#endif
+
#endif /* COMMON_PACKETS2019_LEN_MAIN_H */
diff --git a/src/common/packets/packets2019_len_re.h b/src/common/packets/packets2019_len_re.h
index 489fec550..0f487af37 100644
--- a/src/common/packets/packets2019_len_re.h
+++ b/src/common/packets/packets2019_len_re.h
@@ -4300,7 +4300,11 @@ packetLen(0x0af8, 11)
packetLen(0x0af9, 6)
// Packet: 0x0afa
+#if PACKETVER >= 20191204
+packetLen(0x0afa, 58)
+#elif PACKETVER >= 20190109
packetLen(0x0afa, 54)
+#endif
// Packet: 0x0afb
packetLen(0x0afb, -1)
@@ -4858,5 +4862,20 @@ packetLen(0x0b66, 25)
packetLen(0x0b67, 32)
#endif
+// Packet: 0x0b68
+#if PACKETVER >= 20191120
+packetLen(0x0b68, 12)
+#endif
+
+// Packet: 0x0b69
+#if PACKETVER >= 20191127
+packetLen(0x0b69, 18)
+#endif
+
+// Packet: 0x0b6a
+#if PACKETVER >= 20191204
+packetLen(0x0b6a, -1)
+#endif
+
#endif /* COMMON_PACKETS2019_LEN_RE_H */
diff --git a/src/common/packets/packets2019_len_zero.h b/src/common/packets/packets2019_len_zero.h
index ab3403eb6..da0bf6976 100644
--- a/src/common/packets/packets2019_len_zero.h
+++ b/src/common/packets/packets2019_len_zero.h
@@ -4294,7 +4294,11 @@ packetLen(0x0af8, 11)
packetLen(0x0af9, 6)
// Packet: 0x0afa
+#if PACKETVER >= 20191204
+packetLen(0x0afa, 58)
+#elif PACKETVER >= 20190116
packetLen(0x0afa, 54)
+#endif
// Packet: 0x0afb
packetLen(0x0afb, -1)
@@ -4830,5 +4834,20 @@ packetLen(0x0b66, 25)
packetLen(0x0b67, 32)
#endif
+// Packet: 0x0b68
+#if PACKETVER >= 20191127
+packetLen(0x0b68, 12)
+#endif
+
+// Packet: 0x0b69
+#if PACKETVER >= 20191127
+packetLen(0x0b69, 18)
+#endif
+
+// Packet: 0x0b6a
+#if PACKETVER >= 20191204
+packetLen(0x0b6a, -1)
+#endif
+
#endif /* COMMON_PACKETS2019_LEN_ZERO_H */
diff --git a/src/common/packetsstatic_len.h b/src/common/packetsstatic_len.h
index 730516c27..f721ab882 100644
--- a/src/common/packetsstatic_len.h
+++ b/src/common/packetsstatic_len.h
@@ -32,6 +32,10 @@
#define DEFINE_PACKET_ID(name, id) \
enum { HEADER_##name = id };
+#define CHECK_PACKET_HEADER(name, id) \
+ STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \
+ (size_t)PACKET_LEN_##id, "Wrong size PACKET_"#name); \
+
#define packetLen(id, len) PACKET_LEN_##id = (len),
enum packet_lengths {
#include "common/packets_len.h"