sniff: add checksum verification for ATR and PPS

a checksum error is only signaled in the USB message with the
corresponding flag.

Change-Id: I277868267c3199eea216ab47bdd09fb2fb944b06
This commit is contained in:
Kévin Redon
2018-07-11 10:27:13 +02:00
parent 5f6b8717a4
commit f66af0c640
3 changed files with 28 additions and 3 deletions

View File

@@ -134,6 +134,10 @@ const struct value_string data_flags[] = {
.value = 0,
.str = NULL,
},
{
.value = SNIFF_DATA_FLAG_ERROR_CHECKSUM,
.str = "checksum error",
},
};
static void print_flags(const struct value_string* flag_meanings, uint32_t nb_flags, uint32_t flags) {