[peerdist] Include trimmed range within content information block

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-07-20 18:17:53 +01:00
parent b20d4a1522
commit f0d594557c
3 changed files with 76 additions and 37 deletions

View File

@@ -402,6 +402,8 @@ struct peerdist_info_block {
* Note that this range may exceed the overall content range.
*/
struct peerdist_range range;
/** Trimmed content range */
struct peerdist_range trim;
/** Block hash */
uint8_t hash[PEERDIST_DIGEST_MAX_SIZE];
};