Lines Matching refs:data

124 	char data[];  member
169 const unsigned char *data,
180 .data = test_data, \
194 .data = test_data, \
210 .data = test_data, \
225 .data = test_data, \
271 #define DATA_ARRAY(var, data, ...) \ argument
272 static const char var [] = { data, __VA_ARGS__ } ;
274 #define DATA_STRING(var, data) \ argument
275 static const char var [] = data;
306 static struct data { struct
312 const unsigned char *data; /* data to be sent */ argument
320 } data[] = { argument
618 unsigned char *data) in new_option_node() argument
625 coap_option *option = (coap_option *)(node->data); in new_option_node()
629 memcpy(COAP_OPTION_DATA(*option), data, length); in new_option_node()
717 coap_option *option = (coap_option *)(item->data); in clone_option()
722 memcpy(node->data, option, in clone_option()
736 data[user_data->index].buf); in create_uri()
739 print_data(uri, data[user_data->index].len); in create_uri()
762 if (data[user_data->index].data) { in create_pdu()
763 send_data = data[user_data->index].data; in create_pdu()
764 send_data_len = data[user_data->index].data_len; in create_pdu()
769 data[user_data->index].coap_method, in create_pdu()
772 data[user_data->index].message_type); in create_pdu()
774 if (data[user_data->index].check_mid) in create_pdu()
775 data[user_data->index].expected_mid = ntohs(pdu->hdr->id); in create_pdu()
789 data[user_data->index].description, in send_packets()
790 user_data->index, data[user_data->index].len); in send_packets()
803 method = data[user_data->index].coap_method; in send_packets()
839 data[user_data->index].description, in try_send()
840 user_data->index, data[user_data->index].len); in try_send()
853 method = data[user_data->index].coap_method; in try_send()
945 data[user_data->index].description, user_data->index, read_len); in read_from_peer()
962 if (!data[user_data->index + 1].buf) { in read_from_peer()
991 uint8 *data, size_t len) in send_to_peer() argument
1001 printf("Sending to peer encrypted data %p len %zu\n", data, len); in send_to_peer()
1003 return sendto(user_data->fd, data, len, 0, in send_to_peer()
1104 if (data[test_context->index].add_token && !check_token(received)) { in is_our_own()
1121 switch (COAP_OPTION_KEY(*(coap_option *)option->data)) { in add_options()
1128 COAP_OPTION_KEY(*(coap_option *)option->data), in add_options()
1129 COAP_OPTION_LENGTH(*(coap_option *)option->data), in add_options()
1130 COAP_OPTION_DATA(*(coap_option *)option->data)); in add_options()
1145 o1 = (coap_option *)(((coap_list_t *)a)->data); in order_opts()
1146 o2 = (coap_option *)(((coap_list_t *)b)->data); in order_opts()
1169 if (data[test_context->index].add_token) { in coap_new_request()
1185 coap_option *o = (coap_option *)(opt->data); in coap_new_request()
1283 snprintf(buf, sizeof(buf), "%sMID: %d", data[test_case].data, in check_mid()
1284 data[test_case].expected_mid); in check_mid()
1304 if (data[test_context->index].check_mid && in receive_data()
1311 if (!data[test_context->index + 1].buf) { in receive_data()
1321 if (data[test_context->index].check_mid) { in receive_data()
1326 if (!data[test_context->index + 1].buf) { in receive_data()
1508 unsigned char *data, in my_coap_network_send() argument
1512 data, datalen); in my_coap_network_send()
1608 (sizeof(data) / sizeof(struct data) - 1);
1850 (sizeof(data) / sizeof(struct data)) - 1)
1853 if (!data[user_data.index].expecting_reply) {
1856 if (!data[user_data.index].buf) {
1864 user_data.index, data[user_data.index].len);