Home
last modified time | relevance | path

Searched refs:uri_path (Results 1 – 19 of 19) sorted by relevance

/third_party/libcoap/tests/
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->length == 4); in t_parse_uri19()
[all …]
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/
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)
288 r->uri_path = uri_path;
311 … r->uri_path = coap_new_str_const(coap_unknown_resource_uri, sizeof(coap_unknown_resource_uri)-1);
[all …]
Dcoap_uri.c773 coap_string_t *uri_path = NULL; in coap_get_uri_path() local
785 uri_path = coap_new_string(uri.path.length); in coap_get_uri_path()
786 if (uri_path) { in coap_get_uri_path()
787 memcpy(uri_path->s, uri.path.s, uri.path.length); in coap_get_uri_path()
789 return uri_path; in coap_get_uri_path()
812 uri_path = coap_new_string(length); in coap_get_uri_path()
813 if (uri_path) { in coap_get_uri_path()
814 uri_path->length = length; in coap_get_uri_path()
815 unsigned char *s = uri_path->s; in coap_get_uri_path()
835 return uri_path; in coap_get_uri_path()
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()
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->length, (int)uri_path->length, uri_path->s); in handle_request()
3012 (int)uri_path->length, (int)uri_path->length, uri_path->s); in handle_request()
[all …]
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() argument
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()
/third_party/libcoap/examples/
Dcoap-server.c656 coap_string_t **uri_path, in get_uri_proxy_scheme_info() argument
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
[all …]
Dcoap-rd.c181 HASH_FIND(hh, resources, resource->uri_path.s, resource->uri_path.length, rd); in hnd_put_resource()
/third_party/libcoap/include/coap3/
Dcoap_resource_internal.h81 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))
Dcoap_resource.h174 coap_resource_t *coap_resource_init(coap_str_const_t *uri_path,
287 coap_str_const_t *uri_path);
503 coap_str_const_t *uri_path);
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/tests/oss-fuzz/
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()
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()
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/libcoap/man/
Dcoap_resource.txt.in298 *coap_resource_get_uri_path*() returns the uri_path or NULL if
463 * The uri_path string is a const pointer
491 /* get the uri_path */
513 check_url_fn(coap_string_t *uri_path, uint8_t code) {
515 (void)uri_path;
533 coap_string_t *uri_path;
535 /* get the uri_path - which will get used by coap_resource_init() */
536 uri_path = coap_get_uri_path(request);
537 if (!uri_path) {
543 if (!check_url_fn (uri_path, req_code)) {
[all …]
Dcoap_persist.txt.in270 coap_str_const_t *uri_path = coap_resource_get_uri_path(resource);
272 if (!uri_path) {
279 if (coap_string_equal(uri_path, coap_make_str_const("time"))) {
Dcoap_observe.txt.in225 coap_str_const_t *uri_path = coap_resource_get_uri_path(resource);
227 if (!uri_path) {
234 if (coap_string_equal(uri_path, coap_make_str_const("time"))) {
/third_party/curl/lib/
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_len)) { in pathmatch()
215 if(uri_path[cookie_path_len] == '/') { in pathmatch()
[all …]