Lines Matching refs:num
56 coap_block_t block = { .num = 0, .m = 0, .szx = 6 };
171 coap_add_block(pdu, length, data, block.num, block.szx); in coap_new_request()
430 block.num = coap_opt_block_num(block_opt); in message_handler()
433 block.szx, block.num); in message_handler()
435 if (payload.length <= (block.num+1) * (1 << (block.szx + 4))) { in message_handler()
466 block.num++; in message_handler()
467 block.m = ((block.num+1) * (1 << (block.szx + 4)) < payload.length); in message_handler()
469 debug("send block %d\n", block.num); in message_handler()
473 (block.num << 4) | (block.m << 3) | block.szx), buf); in message_handler()
478 block.num, in message_handler()
740 block.num = size; in cmdline_blocksize()
766 (block.num << 4 | block.m << 3 | block.szx)); in set_blocksize()
819 unsigned int num = 0; in cmdline_option() local
822 num = num * 10 + (*arg - '0'); in cmdline_option()
829 new_option_node(num, strlen(arg), (unsigned char *)arg)); in cmdline_option()