Lines Matching refs:node

620 	coap_list_t *node;  in new_option_node()  local
622 node = coap_malloc(sizeof(coap_list_t) + sizeof(coap_option) + length); in new_option_node()
624 if (node) { in new_option_node()
625 coap_option *option = (coap_option *)(node->data); in new_option_node()
634 return node; in new_option_node()
637 static int coap_insert(coap_list_t **head, coap_list_t *node) in coap_insert() argument
639 if (!node) { in coap_insert()
642 LL_APPEND((*head), node); in coap_insert()
645 return node != NULL; in coap_insert()
648 static int coap_delete(coap_list_t *node) in coap_delete() argument
650 if (node) { in coap_delete()
651 coap_free(node); in coap_delete()
716 coap_list_t *node; in clone_option() local
719 node = coap_malloc(sizeof(coap_list_t) + sizeof(coap_option) + in clone_option()
721 if (node) { in clone_option()
722 memcpy(node->data, option, in clone_option()
724 return node; in clone_option()
884 coap_queue_t *node; in dispatch_data() local
898 node = coap_new_node(); in dispatch_data()
899 if (!node) in dispatch_data()
902 node->pdu = coap_pdu_init(0, 0, 0, bytes_read); in dispatch_data()
904 if (!node->pdu) in dispatch_data()
907 coap_ticks(&node->t); in dispatch_data()
908 memcpy(&node->local_if, ctx->endpoint, sizeof(coap_endpoint_t)); in dispatch_data()
909 memcpy(&node->remote, src, sizeof(coap_address_t)); in dispatch_data()
911 if (!coap_pdu_parse((unsigned char *)buf, bytes_read, node->pdu)) { in dispatch_data()
916 coap_transaction_id(&node->remote, node->pdu, &node->id); in dispatch_data()
924 coap_show_pdu(node->pdu); in dispatch_data()
927 coap_dispatch(ctx, node); in dispatch_data()
931 coap_delete_node(node); in dispatch_data()