summaryrefslogtreecommitdiff
path: root/quantum/split_common/transport.h
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2022-08-06 10:46:59 +0200
committerGitHub <noreply@github.com>2022-08-06 18:46:59 +1000
commited9bdcbc3608819e17ff7a11221e651bf51ec1cc (patch)
tree36e87885a316d67edc7fe64a04ca0db90c890e4c /quantum/split_common/transport.h
parentcac704241404908794514b7a534e58c96aff4d6b (diff)
[Core] guard RPC invocation by checking RPC info against crc checksum (#17840)
Diffstat (limited to 'quantum/split_common/transport.h')
-rw-r--r--quantum/split_common/transport.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h
index e62679990a..06778ad14a 100644
--- a/quantum/split_common/transport.h
+++ b/quantum/split_common/transport.h
@@ -116,9 +116,12 @@ typedef struct _split_slave_pointing_sync_t {
#if defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)
typedef struct _rpc_sync_info_t {
- int8_t transaction_id;
- uint8_t m2s_length;
- uint8_t s2m_length;
+ uint8_t checksum;
+ struct {
+ int8_t transaction_id;
+ uint8_t m2s_length;
+ uint8_t s2m_length;
+ } payload;
} rpc_sync_info_t;
#endif // defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)