Searched refs:block_opt (Results 1 – 4 of 4) sorted by relevance
/net-tools-3.4.0/libcoap/include/coap/ |
D | block.h | 58 unsigned int coap_opt_block_num(const coap_opt_t *block_opt); 71 coap_opt_block_set_m(coap_opt_t *block_opt, int m) { in coap_opt_block_set_m() argument 73 *(COAP_OPT_VALUE(block_opt) + (COAP_OPT_LENGTH(block_opt) - 1)) |= 0x08; in coap_opt_block_set_m() 75 *(COAP_OPT_VALUE(block_opt) + (COAP_OPT_LENGTH(block_opt) - 1)) &= ~0x08; in coap_opt_block_set_m()
|
/net-tools-3.4.0/libcoap/src/ |
D | block.c | 26 coap_opt_block_num(const coap_opt_t *block_opt) { in coap_opt_block_num() argument 30 len = coap_opt_length(block_opt); in coap_opt_block_num() 37 num = coap_decode_var_bytes(COAP_OPT_VALUE(block_opt), in coap_opt_block_num() 38 COAP_OPT_LENGTH(block_opt) - 1); in coap_opt_block_num() 41 return (num << 4) | ((*COAP_OPT_BLOCK_LAST(block_opt) & 0xF0) >> 4); in coap_opt_block_num()
|
/net-tools-3.4.0/libcoap/examples/ |
D | client.c | 323 coap_opt_t *block_opt; in message_handler() local 364 block_opt = coap_check_option(received, COAP_OPTION_BLOCK2, &opt_iter); in message_handler() 365 if (block_opt) { /* handle Block2 */ in message_handler() 372 if(COAP_OPT_BLOCK_MORE(block_opt)) { in message_handler() 375 COAP_OPT_BLOCK_SZX(block_opt), in message_handler() 376 coap_opt_block_num(block_opt)); in message_handler() 401 debug("query block %d\n", (coap_opt_block_num(block_opt) + 1)); in message_handler() 405 ((coap_opt_block_num(block_opt) + 1) << 4) | in message_handler() 406 COAP_OPT_BLOCK_SZX(block_opt)), buf); in message_handler() 426 block_opt = coap_check_option(received, COAP_OPTION_BLOCK1, &opt_iter); in message_handler() [all …]
|
/net-tools-3.4.0/ |
D | coap-client.c | 1209 coap_opt_t *block_opt) in read_blocks() argument 1221 if (COAP_OPT_BLOCK_MORE(block_opt)) { in read_blocks() 1223 COAP_OPT_BLOCK_SZX(block_opt), in read_blocks() 1224 coap_opt_block_num(block_opt)); in read_blocks() 1232 (coap_opt_block_num(block_opt) + 1)); in read_blocks() 1236 ((coap_opt_block_num(block_opt) + 1) << 4) | in read_blocks() 1237 COAP_OPT_BLOCK_SZX(block_opt)), buf); in read_blocks() 1343 coap_opt_t *block_opt; in coap_message_handler() local 1377 block_opt = get_block(received, &opt_iter); in coap_message_handler() 1378 if (block_opt) in coap_message_handler() [all …]
|