Home
last modified time | relevance | path

Searched refs:uri_path (Results 1 - 15 of 15) sorted by relevance

/third_party/libcoap/tests/
H A Dtest_uri.c347 coap_string_t *uri_path = coap_get_uri_path(&pdu); in t_parse_uri13() local
349 CU_ASSERT(uri_path->length == sizeof(COAP_DEFAULT_URI_WELLKNOWN)-1); in t_parse_uri13()
350 CU_ASSERT_NSTRING_EQUAL(uri_path->s, COAP_DEFAULT_URI_WELLKNOWN, in t_parse_uri13()
352 coap_delete_string(uri_path); in t_parse_uri13()
448 coap_string_t *uri_path = coap_get_uri_path(&pdu); in t_parse_uri18() local
450 CU_ASSERT(uri_path->length == 0); in t_parse_uri18()
454 CU_ASSERT_NSTRING_EQUAL(uri_path->s, "", 1); in t_parse_uri18()
456 coap_delete_string(uri_path); in t_parse_uri18()
473 coap_string_t *uri_path = coap_get_uri_path(&pdu); in t_parse_uri19() local
475 CU_ASSERT(uri_path in t_parse_uri19()
493 coap_string_t *uri_path = coap_get_uri_path(&pdu); t_parse_uri20() local
514 coap_string_t *uri_path = coap_get_uri_path(&pdu); t_parse_uri21() local
537 coap_string_t *uri_path = coap_get_uri_path(&pdu); t_parse_uri22() local
558 coap_string_t *uri_path = coap_get_uri_path(&pdu); t_parse_uri23() local
[all...]
H A Dtest_wellknown.c150 coap_str_const_t uri_path = {.length = len, .s = uribuf}; in t_wellknown3() local
151 r = coap_resource_init(&uri_path, 0); in t_wellknown3()
/third_party/libcoap/src/
H A Dcoap_resource.c209 if (!match(r->uri_path, &query_pattern, (flags & MATCH_PREFIX) != 0,
269 coap_resource_init(coap_str_const_t *uri_path, int flags) { argument
278 if (uri_path)
279 uri_path = coap_new_str_const(uri_path->s, uri_path->length);
281 uri_path = coap_new_str_const(null_path->s, null_path->length);
282 } else if (!uri_path) {
284 uri_path = coap_new_str_const(null_path->s, null_path->length);
287 if (uri_path)
606 coap_get_resource_from_uri_path(coap_context_t *context, coap_str_const_t *uri_path) global() argument
[all...]
H A Dcoap_subscribe.c67 coap_string_t *uri_path = NULL; in coap_persist_observe_add() local
137 uri_path = coap_get_uri_path(pdu); in coap_persist_observe_add()
138 if (!uri_path) in coap_persist_observe_add()
142 (coap_str_const_t *)uri_path); in coap_persist_observe_add()
145 uri_path->s); in coap_persist_observe_add()
150 uri_path->s); in coap_persist_observe_add()
153 coap_delete_string(uri_path); in coap_persist_observe_add()
154 uri_path = NULL; in coap_persist_observe_add()
294 coap_delete_string(uri_path); in coap_persist_observe_add()
H A Dcoap_net.c2777 coap_string_t *uri_path = NULL; in handle_request() local
2924 uri_path = coap_get_uri_path(pdu); in handle_request()
2925 if (!uri_path) in handle_request()
2930 coap_str_const_t uri_path_c = { uri_path->length, uri_path->s }; in handle_request()
2962 } else if (coap_string_equal(uri_path, &coap_default_uri_wellknown)) { in handle_request()
2994 (int)uri_path->length, in handle_request()
2995 (int)uri_path->length, in handle_request()
2996 uri_path->s); in handle_request()
3002 (int)uri_path in handle_request()
[all...]
H A Dcoap_block.c2130 coap_delete_str_const(lg_srcv->uri_path); in coap_block_delete_lg_srcv()
2581 coap_string_t *uri_path, in coap_handle_request_put_block()
2656 coap_string_equal(uri_path, p->uri_path)) in coap_handle_request_put_block()
2682 p->uri_path = coap_new_str_const(uri_path->s, uri_path->length); in coap_handle_request_put_block()
2576 coap_handle_request_put_block(coap_context_t *context, coap_session_t *session, coap_pdu_t *pdu, coap_pdu_t *response, coap_resource_t *resource, coap_string_t *uri_path, coap_opt_t *observe, int *added_block, coap_lg_srcv_t **pfree_lg_srcv) coap_handle_request_put_block() argument
/third_party/libcoap/include/coap3/
H A Dcoap_resource_internal.h51 * The key is uri_path.
81 coap_str_const_t *uri_path; /**< the key used for hash lookup for this member
122 HASH_ADD(hh, (r), uri_path->s[0], (obj)->uri_path->length, (obj))
H A Dcoap_resource.h150 * @p uri_path. This function returns the new coap_resource_t object.
157 * @param uri_path The string URI path of the new resource. The leading '/' is
174 coap_resource_t *coap_resource_init(coap_str_const_t *uri_path,
278 * Returns the resource identified by the unique string @p uri_path. If no
282 * @param uri_path The unique string uri of the resource.
287 coap_str_const_t *uri_path);
290 * Get the uri_path from a @p resource.
294 * @return The uri_path if it exists or @c NULL otherwise.
494 * Returns the resource identified by the unique string @p uri_path. If no
498 * @param uri_path Th
[all...]
H A Dcoap_block_internal.h192 coap_str_const_t *uri_path; /** set to uri_path if unknown resource */ member
276 coap_string_t *uri_path,
/third_party/libcoap/examples/
H A Dcoap-server.c656 coap_string_t **uri_path, in get_uri_proxy_scheme_info()
699 *uri_path = coap_get_uri_path(request); in get_uri_proxy_scheme_info()
700 if (*uri_path) { in get_uri_proxy_scheme_info()
701 uri->path.s = (*uri_path)->s; in get_uri_proxy_scheme_info()
702 uri->path.length = (*uri_path)->length; in get_uri_proxy_scheme_info()
989 coap_string_t *uri_path = NULL; in hnd_proxy_uri() local
1010 if (!get_uri_proxy_scheme_info(request, opt, &uri, &uri_path, in hnd_proxy_uri()
1175 coap_delete_string(uri_path); in hnd_proxy_uri()
1183 coap_string_t *uri_path; member
1205 coap_string_t *uri_path; in hnd_delete() local
653 get_uri_proxy_scheme_info(const coap_pdu_t *request, coap_opt_t *opt, coap_uri_t *uri, coap_string_t **uri_path, coap_string_t **uri_query) get_uri_proxy_scheme_info() argument
1246 coap_str_const_t *uri_path; hnd_get() local
1294 coap_string_t *uri_path; hnd_put_post() local
1519 coap_string_t *uri_path; hnd_put_post_unknown() local
[all...]
H A Dcoap-rd.c181 HASH_FIND(hh, resources, resource->uri_path.s, resource->uri_path.length, rd); in hnd_put_resource()
/third_party/libcoap/tests/oss-fuzz/
H A Dpdu_parse_tcp_target.c13 coap_string_t *uri_path = coap_get_uri_path(pdu); in LLVMFuzzerTestOneInput() local
18 coap_delete_string(uri_path); in LLVMFuzzerTestOneInput()
H A Dpdu_parse_udp_target.c13 coap_string_t *uri_path = coap_get_uri_path(pdu); in LLVMFuzzerTestOneInput() local
18 coap_delete_string(uri_path); in LLVMFuzzerTestOneInput()
H A Dpdu_parse_ws_target.c13 coap_string_t *uri_path = coap_get_uri_path(pdu); in LLVMFuzzerTestOneInput() local
18 coap_delete_string(uri_path); in LLVMFuzzerTestOneInput()
/third_party/curl/lib/
H A Dcookie.c160 char *uri_path = NULL; in pathmatch() local
171 uri_path = strdup(request_uri); in pathmatch()
172 if(!uri_path) in pathmatch()
174 pos = strchr(uri_path, '?'); in pathmatch()
179 if(0 == strlen(uri_path) || uri_path[0] != '/') { in pathmatch()
180 strstore(&uri_path, "/", 1); in pathmatch()
181 if(!uri_path) in pathmatch()
195 uri_path_len = strlen(uri_path); in pathmatch()
203 if(strncmp(cookie_path, uri_path, cookie_path_le in pathmatch()
[all...]

Completed in 19 milliseconds