Commit 7bb3e3d
committed
pldm-file: use cumulative crc for multipart transfers
Regarding the part checksum field, DSP0240 says:
32-bit cumulative CRC for the entirety of data received so far for this
section (all parts concatenated together, excluding checksums). Shall be
included with all part transfers.
So, we need to keep the checksum Digest around, and use the cumulative
value in responses & response checks.
We also shift the comment on restarting from a FIRST_PART, as it was
incorrectly placed in the non-restart case.
Signed-off-by: Jeremy Kerr <[email protected]>1 parent 11227c1 commit 7bb3e3d
2 files changed
+29
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
199 | | - | |
200 | | - | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | | - | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
34 | 54 | | |
35 | 55 | | |
36 | 56 | | |
| |||
80 | 100 | | |
81 | 101 | | |
82 | 102 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 103 | | |
87 | 104 | | |
88 | 105 | | |
| |||
349 | 366 | | |
350 | 367 | | |
351 | 368 | | |
352 | | - | |
| 369 | + | |
| 370 | + | |
353 | 371 | | |
354 | 372 | | |
355 | | - | |
356 | 373 | | |
357 | 374 | | |
358 | 375 | | |
| |||
406 | 423 | | |
407 | 424 | | |
408 | 425 | | |
409 | | - | |
| 426 | + | |
| 427 | + | |
410 | 428 | | |
411 | 429 | | |
412 | 430 | | |
| |||
421 | 439 | | |
422 | 440 | | |
423 | 441 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
| 442 | + | |
429 | 443 | | |
430 | 444 | | |
431 | 445 | | |
| |||
0 commit comments