Skip to content

Commit 95ee51b

Browse files
Li-Aaronjyao1
authored andcommitted
1.4 Add LargePayload to VDM.
Signed-off-by: Aaron Li <[email protected]>
1 parent dd4cf77 commit 95ee51b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

spdm_dump/spdm/spdm_dump_spdm.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,12 @@ void dump_spdm_vendor_defined_request(const void *buffer, size_t buffer_size)
22462246
spdm_request = buffer;
22472247

22482248
if (!m_param_quite_mode) {
2249-
printf("(StandID=0x%04x) ", spdm_request->standard_id);
2249+
if (spdm_request->header.spdm_version >= SPDM_MESSAGE_VERSION_14) {
2250+
printf("(LargeReq=0x%02x, ", spdm_request->header.param1 & SPDM_VENDOR_DEFINED_REQUEST_LARGE_REQ);
2251+
} else {
2252+
printf("(");
2253+
}
2254+
printf("StandID=0x%04x) ", spdm_request->standard_id);
22502255
}
22512256

22522257
if (m_param_dump_vendor_app) {
@@ -2276,7 +2281,12 @@ void dump_spdm_vendor_defined_response(const void *buffer, size_t buffer_size)
22762281
spdm_response = buffer;
22772282

22782283
if (!m_param_quite_mode) {
2279-
printf("(StandID=0x%04x) ", spdm_response->standard_id);
2284+
if (spdm_response->header.spdm_version >= SPDM_MESSAGE_VERSION_14) {
2285+
printf("(LargeReq=0x%02x, ", spdm_response->header.param1 & SPDM_VENDOR_DEFINED_RESONSE_LARGE_RESP);
2286+
} else {
2287+
printf("(");
2288+
}
2289+
printf("StandID=0x%04x) ", spdm_response->standard_id);
22802290
}
22812291

22822292
if (m_param_dump_vendor_app) {

0 commit comments

Comments
 (0)