diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-15 07:33:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-27 23:10:23 +0300 |
commit | fabfaf566459da17e1543be920769677d92c79b8 (patch) | |
tree | c18f225ad7223a057e64be576b83b987984f5fb7 /src/common | |
parent | 41d370cd3308be48b4ce00a50ee46515742978b0 (diff) | |
download | hercules-fabfaf566459da17e1543be920769677d92c79b8.tar.gz hercules-fabfaf566459da17e1543be920769677d92c79b8.tar.bz2 hercules-fabfaf566459da17e1543be920769677d92c79b8.tar.xz hercules-fabfaf566459da17e1543be920769677d92c79b8.zip |
Add incomplete packet CA_ACK_MOBILE_OTP.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/packetsstatic_len.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/packetsstatic_len.h b/src/common/packetsstatic_len.h index 9ccc4a673..8e724cfa8 100644 --- a/src/common/packetsstatic_len.h +++ b/src/common/packetsstatic_len.h @@ -24,6 +24,11 @@ #error packetLen already defined #endif +#define DEFINE_PACKET_HEADER(name, id) \ + STATIC_ASSERT(PACKET_LEN_##id == -1 || sizeof(struct PACKET_##name) == \ + PACKET_LEN_##id, "Wrong size PACKET_"#name); \ + enum { HEADER_##name = id }; + #define packetLen(id, len) PACKET_LEN_##id = (len), enum packet_lengths { #include "common/packets_len.h" |