mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-17 21:39:04 +03:00
coap_block.c: Handle missing Size1 option when using Block1
This commit is contained in:
1 parent
ba42209ed3
commit
eb119c6ddb
2 files changed
+29
-23
No files matched your search
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user