coap_block.c: Handle missing Size1 option when using Block1

This commit is contained in:
Jon Shallow committed 2025-09-16 11:41:41 +01:00
1 parent ba42209ed3
commit eb119c6ddb
2 files changed
+29 -23

No files matched your search

+2 -1
View File
@@ -102,7 +102,7 @@ struct coap_lg_range {
* Structure to keep track of received blocks
*/
typedef struct coap_rblock_t {
uint32_t used;
uint32_t used; /**< Number of range blocks in use */
uint32_t retry;
#if COAP_Q_BLOCK_SUPPORT
uint32_t processing_payload_set;
@@ -110,6 +110,7 @@ typedef struct coap_rblock_t {
#endif /* COAP_Q_BLOCK_SUPPORT */
struct coap_lg_range range[COAP_RBLOCK_CNT];
coap_tick_t last_seen;
uint32_t total_blocks; /**< Set to block no + 1 when More bit unset */
} coap_rblock_t;
/**