Home
last modified time | relevance | path

Searched refs:COAP_PROTO_UDP (Results 1 – 25 of 27) sorted by relevance

12

/third_party/libcoap/tests/
Dtest_pdu.c30 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu1()
46 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu2()
63 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu3()
75 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu4()
81 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu4()
93 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu5()
115 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu6()
128 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu7()
153 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu8()
174 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu9()
[all …]
Dtest_error_response.c51 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response1()
80 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response2()
113 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response3()
152 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response4()
193 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response5()
234 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response6()
276 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response7()
317 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response8()
Dtest_oscore.c455 result = coap_pdu_parse(COAP_PROTO_UDP, unprotected_coap_request, in t_oscore_c_4()
462 session->proto = COAP_PROTO_UDP; in t_oscore_c_4()
522 result = coap_pdu_parse(COAP_PROTO_UDP, unprotected_coap_request, in t_oscore_c_5()
529 session->proto = COAP_PROTO_UDP; in t_oscore_c_5()
591 result = coap_pdu_parse(COAP_PROTO_UDP, unprotected_coap_request, in t_oscore_c_6()
598 session->proto = COAP_PROTO_UDP; in t_oscore_c_6()
671 result = coap_pdu_parse(COAP_PROTO_UDP, protected_coap_request, in t_oscore_c_7()
675 result = coap_pdu_parse(COAP_PROTO_UDP, unprotected_coap_response, in t_oscore_c_7()
682 session->proto = COAP_PROTO_UDP; in t_oscore_c_7()
778 result = coap_pdu_parse(COAP_PROTO_UDP, unprotected_coap_request, in t_oscore_c_7_2()
[all …]
Dtest_session.c161 session = coap_new_client_session(ctx, &saddr, &laddr, COAP_PROTO_UDP); in t_session6()
186 session = coap_new_client_session(ctx, NULL, &addr, COAP_PROTO_UDP); in t_session_tests_create()
Dtest_wellknown.c205 session = coap_new_client_session(ctx, NULL, &addr, COAP_PROTO_UDP); in t_wkc_tests_create()
Dtest_sendqueue.c289 session = coap_new_client_session(ctx, NULL, &addr, COAP_PROTO_UDP); in t_sendqueue_tests_create()
/third_party/libcoap/tests/oss-fuzz/
Dpdu_parse_udp_target.c11 if (coap_pdu_parse(COAP_PROTO_UDP, data, size, pdu)) { in LLVMFuzzerTestOneInput()
15 coap_pdu_encode_header(pdu, COAP_PROTO_UDP); in LLVMFuzzerTestOneInput()
/third_party/libcoap/src/
Dcoap_address.c382 case COAP_PROTO_UDP: in coap_get_available_scheme_hint_bits()
448 proto = COAP_PROTO_UDP; in coap_resolve_address_info()
541 proto = COAP_PROTO_UDP; in coap_resolve_address_info()
717 proto = COAP_PROTO_UDP; in coap_resolve_address_info()
Dcoap_session.c1031 if (session->proto == COAP_PROTO_UDP) in coap_session_disconnected()
1232 if (endpoint->proto == COAP_PROTO_UDP) in coap_endpoint_get_session()
1269 case COAP_PROTO_UDP: in coap_session_create_client()
1821 case COAP_PROTO_UDP: in coap_proto_name()
2052 if (endpoint->proto == COAP_PROTO_UDP) { in coap_endpoint_str()
Dcoap_pdu.c931 } else if (proto == COAP_PROTO_UDP || proto==COAP_PROTO_DTLS) { in coap_pdu_parse_header_size()
1000 if (proto == COAP_PROTO_UDP || proto == COAP_PROTO_DTLS) { in coap_pdu_parse_header()
Dcoap_subscribe.c79 if (e_proto != COAP_PROTO_UDP) in coap_persist_observe_add()
Dcoap_net.c542 coap_endpoint_t *endpoint = coap_new_endpoint(c, listen_addr, COAP_PROTO_UDP); in coap_new_context()
1731 } else if (session->proto == COAP_PROTO_UDP) { in coap_handle_dgram_for_proto()
4255 if (endpoint->proto == COAP_PROTO_UDP) { in coap_join_mcast_group_intf()
/third_party/libcoap/examples/
Dtiny.c117 session = coap_new_client_session(ctx, NULL, &addr, COAP_PROTO_UDP); in get_session()
Doscore-interop-server.c467 ep_udp = coap_new_endpoint(ctx, &addr, COAP_PROTO_UDP); in get_context()
/third_party/libcoap/include/coap3/
Dcoap_session.h36 #define COAP_PROTO_NOT_RELIABLE(p) ((p)==COAP_PROTO_UDP || (p)==COAP_PROTO_DTLS)
Dcoap_pdu.h310 COAP_PROTO_UDP, enumerator
/third_party/libcoap/examples/riot/examples_libcoap_client/
Dclient-coap.c168 COAP_PROTO_UDP); in client_coap_init()
/third_party/libcoap/examples/lwip/
Dclient-coap.c179 COAP_PROTO_UDP); in client_coap_init()
/third_party/libcoap/man/
Dcoap_endpoint_client.txt.in97 COAP_PROTO_UDP
242 session = coap_new_client_session(context, NULL, &server, COAP_PROTO_UDP);
290 session = coap_new_client_session(context, &local, &server, COAP_PROTO_UDP);
Dcoap_endpoint_server.txt.in148 COAP_PROTO_UDP
238 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_UDP);
282 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_UDP);
Dcoap_oscore.txt.in286 COAP_PROTO_UDP, oscore_conf);
288 session = coap_new_client_session(context, NULL, &server, COAP_PROTO_UDP);
Dcoap_uri.txt.in184 if (proto != COAP_PROTO_UDP)
Dcoap_session.txt.in174 COAP_PROTO_UDP
Dcoap_persist.txt.in341 ep = coap_new_endpoint(ctx, &addr, COAP_PROTO_UDP);
Dcoap_observe.txt.in297 ep = coap_new_endpoint(ctx, &addr, COAP_PROTO_UDP);

12