Searched refs:coap_key_t (Results 1 – 11 of 11) sorted by relevance
/net-tools-3.4.0/libcoap/include/coap/ |
D | resource.h | 79 coap_key_t key; /**< the actual key bytes for this resource */ 143 int coap_delete_resource(coap_context_t *context, coap_key_t key); 266 coap_key_t key); 275 void coap_hash_request_uri(const coap_pdu_t *request, coap_key_t key); 362 if (memcmp((k), tmp->key, sizeof(coap_key_t)) == 0) { \ 371 HASH_ADD(hh, (r), key, sizeof(coap_key_t), (obj)) 381 HASH_FIND(hh, (r), (k), sizeof(coap_key_t), (res)); \
|
D | hashkey.h | 20 typedef unsigned char coap_key_t[4]; typedef 32 void coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h); 53 memset((H), 0, sizeof(coap_key_t)); \
|
D | uri.h | 56 int coap_hash_path(const unsigned char *path, size_t len, coap_key_t key);
|
D | net.h | 72 coap_key_t item[COAP_MID_CACHE_SIZE];
|
/net-tools-3.4.0/libcoap/src/ |
D | hashkey.c | 15 coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h) { in coap_hash_impl() 19 j = sizeof(coap_key_t)-1; in coap_hash_impl()
|
D | resource.c | 383 coap_hash_request_uri(const coap_pdu_t *request, coap_key_t key) { 388 memset(key, 0, sizeof(coap_key_t)); 428 coap_delete_resource(coap_context_t *context, coap_key_t key) { 468 coap_get_resource_from_key(coap_context_t *context, coap_key_t key) {
|
D | uri.c | 481 coap_hash_path(const unsigned char *path, size_t len, coap_key_t key) { in coap_hash_path() 485 memset(key, 0, sizeof(coap_key_t)); in coap_hash_path()
|
D | net.c | 316 (memcmp((Key), COAP_DEFAULT_WKC_HASHKEY, sizeof(coap_key_t)) == 0) 321 is_wkc(coap_key_t k) { in is_wkc() 322 static coap_key_t wkc; in is_wkc() 328 return memcmp(k, wkc, sizeof(coap_key_t)) == 0; in is_wkc() 498 coap_key_t h; in coap_transaction_id() 500 memset(h, 0, sizeof(coap_key_t)); in coap_transaction_id() 1360 coap_key_t key; in handle_request()
|
/net-tools-3.4.0/libcoap/examples/ |
D | etsi_iot_01.c | 43 coap_key_t resource_key; /* foreign key that points into resource space */ 59 coap_key_t resource_key; /* foreign key that points into resource space */ 92 coap_find_payload(const coap_key_t key) { in coap_find_payload() 94 HASH_FIND(hh, test_resources, key, sizeof(coap_key_t), p); in coap_find_payload() 99 coap_add_payload(const coap_key_t key, coap_payload_t *payload, in coap_add_payload() 103 memcpy(payload->resource_key, key, sizeof(coap_key_t)); in coap_add_payload() 104 HASH_ADD(hh, test_resources, resource_key, sizeof(coap_key_t), payload); in coap_add_payload() 107 memcpy(uri->resource_key, key, sizeof(coap_key_t)); in coap_add_payload() 108 HASH_ADD(hh, test_dynamic_uris, resource_key, sizeof(coap_key_t), uri); in coap_add_payload() 117 payload->resource_key, sizeof(coap_key_t), uri); in coap_delete_payload() [all …]
|
D | coap-rd.c | 52 coap_key_t key; /**< the actual key bytes for this resource */ 106 HASH_FIND(hh, resources, resource->key, sizeof(coap_key_t), rd); in hnd_get_resource() 145 HASH_FIND(hh, resources, resource->key, sizeof(coap_key_t), rd); in hnd_put_resource() 211 HASH_FIND(hh, resources, resource->key, sizeof(coap_key_t), rd); in hnd_delete_resource() 509 HASH_ADD(hh, resources, key, sizeof(coap_key_t), rd); in hnd_post_rd()
|
/net-tools-3.4.0/libcoap/tests/ |
D | test_uri.c | 334 coap_key_t key; in t_parse_uri13()
|