Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 59) sorted by relevance

123

/net-tools-2.7.6/libcoap/src/
Dasync.c27 coap_tid_t id; in coap_register_async() local
29 coap_transaction_id(peer, request, &id); in coap_register_async()
30 LL_SEARCH_SCALAR(context->async_state,s,id,id); in coap_register_async()
35 debug("asynchronous state for transaction %d already registered\n", id); in coap_register_async()
63 memcpy(&s->id, &id, sizeof(coap_tid_t)); in coap_register_async()
73 coap_find_async(coap_context_t *context, coap_tid_t id) { in coap_find_async() argument
75 LL_SEARCH_SCALAR(context->async_state,tmp,id,id); in coap_find_async()
80 coap_remove_async(coap_context_t *context, coap_tid_t id, in coap_remove_async() argument
82 coap_async_state_t *tmp = coap_find_async(context, id); in coap_remove_async()
Dnet.c497 coap_tid_t *id) { in coap_transaction_id() argument
528 coap_hash((const unsigned char *)&pdu->hdr->id, sizeof(unsigned short), h); in coap_transaction_id()
530 *id = (((h[0] << 8) | h[1]) ^ ((h[2] << 8) | h[3])) & INT_MAX; in coap_transaction_id()
542 response = coap_pdu_init(COAP_MESSAGE_ACK, 0, request->hdr->id, in coap_send_ack()
559 coap_tid_t id = COAP_INVALID_TID; in coap_send_impl() local
562 return id; in coap_send_impl()
575 coap_transaction_id(dst, pdu, &id); in coap_send_impl()
580 return id; in coap_send_impl()
589 coap_tid_t id = COAP_INVALID_TID; in coap_send_impl() local
595 return id; in coap_send_impl()
[all …]
Dpdu.c76 unsigned short id, size_t size) { in coap_pdu_init() argument
111 pdu->hdr->id = id; in coap_pdu_init()
385 memcpy(&pdu->hdr->id, data + 2, 2); in coap_pdu_parse()
/net-tools-2.7.6/mbedtls-2.4.0/tests/suites/
Dtest_suite_ecp.function13 void mbedtls_ecp_curve_info( int id, int tls_id, int size, char *name )
17 by_id = mbedtls_ecp_curve_info_from_grp_id( id );
54 void ecp_test_vect( int id, char *dA_str, char *xA_str, char *yA_str,
68 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 );
109 void ecp_test_vec_x( int id, char *dA_hex, char *xA_hex,
123 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 );
160 void ecp_fast_mod( int id, char *N_str )
169 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 );
193 void ecp_write_binary( int id, char *x, char *y, char *z, int format,
206 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 );
[all …]
Dtest_suite_ecdsa.function11 void ecdsa_prim_random( int id )
27 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 );
43 void ecdsa_prim_test_vectors( int id, char *d_str, char *xQ_str, char *yQ_str,
61 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 );
99 void ecdsa_det_test_vectors( int id, char *d_str, int md_alg,
113 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 );
136 void ecdsa_write_read_random( int id )
153 TEST_ASSERT( mbedtls_ecdsa_genkey( &ctx, id, &rnd_pseudo_rand, &rnd_info ) == 0 );
Dtest_suite_ecdh.function11 void ecdh_primitive_random( int id )
24 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 );
46 void ecdh_primitive_testvec( int id, char *dA_str, char *xA_str, char *yA_str,
62 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 );
127 void ecdh_exchange( int id )
139 TEST_ASSERT( mbedtls_ecp_group_load( &srv.grp, id ) == 0 );
/net-tools-2.7.6/libcoap/include/coap/
Dnet.h39 coap_tid_t id; /**< unique transaction id */ member
67 const coap_tid_t id);
392 coap_tid_t *id);
410 coap_tid_t id,
424 coap_remove_transaction(coap_queue_t **queue, coap_tid_t id) { in coap_remove_transaction() argument
426 if (!coap_remove_from_queue(queue, id, &node)) in coap_remove_transaction()
441 coap_queue_t *coap_find_transaction(coap_queue_t *queue, coap_tid_t id);
Dasync.h47 coap_tid_t id; /**< transaction id */ member
107 coap_tid_t id,
132 coap_async_state_t *coap_find_async(coap_context_t *context, coap_tid_t id);
Dpdu.h181 unsigned short id; /* message id */ member
191 unsigned short id; /* transaction id (network byte order!) */ member
290 unsigned short id,
/net-tools-2.7.6/libcoap/tests/
Dtest_pdu.c38 CU_ASSERT(memcmp(&pdu->hdr->id, teststr + 2, 2) == 0); in t_parse_pdu1()
55 CU_ASSERT(memcmp(&pdu->hdr->id, teststr + 2, 2) == 0); in t_parse_pdu2()
101 CU_ASSERT(memcmp(&pdu->hdr->id, teststr + 2, 2) == 0); in t_parse_pdu5()
137 CU_ASSERT(memcmp(&pdu->hdr->id, teststr + 2, 2) == 0); in t_parse_pdu7()
163 CU_ASSERT(memcmp(&pdu->hdr->id, teststr + 2, 2) == 0); in t_parse_pdu8()
206 CU_ASSERT(memcmp(&pdu->hdr->id, teststr + 2, 2) == 0); in t_parse_pdu11()
223 CU_ASSERT(memcmp(&pdu->hdr->id, teststr + 2, 2) == 0); in t_parse_pdu12()
262 pdu->hdr->id = htons(0x1234); in t_encode_pdu1()
281 pdu->hdr->id = htons(0x1234); in t_encode_pdu2()
315 pdu->hdr->id = htons(0x1234); in t_encode_pdu4()
[all …]
/net-tools-2.7.6/mbedtls-2.4.0/library/
Decjpake.c129 ctx->grp.id == MBEDTLS_ECP_DP_NONE || in mbedtls_ecjpake_check()
184 const char *id, in ecjpake_hash() argument
191 const size_t id_len = strlen( id ); in ecjpake_hash()
210 memcpy( p, id, id_len ); in ecjpake_hash()
233 const char *id, in ecjpake_zkp_read() argument
278 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_read()
306 const char *id, in ecjpake_zkp_write() argument
328 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_write()
366 const char *id, in ecjpake_kkp_read() argument
388 MBEDTLS_MPI_CHK( ecjpake_zkp_read( md_info, grp, pf, G, X, id, p, end ) ); in ecjpake_kkp_read()
[all …]
Dssl_cache.c91 if( memcmp( session->id, entry->session.id, in mbedtls_ssl_cache_get()
169 if( memcmp( session->id, cur->session.id, cur->session.id_len ) == 0 ) in mbedtls_ssl_cache_set()
Dpkparse.c374 const mbedtls_ecp_group_id *id; in pk_group_id_from_group() local
378 for( id = mbedtls_ecp_grp_id_list(); *id != MBEDTLS_ECP_DP_NONE; id++ ) in pk_group_id_from_group()
382 MBEDTLS_MPI_CHK( mbedtls_ecp_group_load( &ref, *id ) ); in pk_group_id_from_group()
403 *grp_id = *id; in pk_group_id_from_group()
405 if( ret == 0 && *id == MBEDTLS_ECP_DP_NONE ) in pk_group_id_from_group()
465 if( grp->id != MBEDTLS_ECP_DP_NONE && grp->id != grp_id ) in pk_use_ecparams()
/net-tools-2.7.6/libcoap/examples/
Dtiny.c23 static coap_tid_t id; variable
37 pdu->hdr->id = htons(id++); in make_pdu()
116 id = rand() & INT_MAX; in main()
Dcoap-server.c223 if (async->id != request->hdr->id) { in hnd_get_async()
270 response->hdr->id = coap_new_message_id(ctx); in check_async()
279 response->hdr->id); in check_async()
282 coap_remove_async(ctx, async->id, &tmp); in check_async()
/net-tools-2.7.6/mbedtls-2.4.0/scripts/
Dmalloc-init.pl37 my $id = qr/([a-zA-Z-0-9_\->\.]*)/;
52 if( /$id\s*=.*mbedtls_malloc\(/ ) {
/net-tools-2.7.6/tinydtls-0.8.2/examples/contiki/
Ddtls-server.c122 const unsigned char *id, size_t id_len, in get_psk_info() argument
126 unsigned char *id; in get_psk_info() member
143 if (id) { in get_psk_info()
146 if (id_len == psk[i].id_length && memcmp(id, psk[i].id, id_len) == 0) { in get_psk_info()
/net-tools-2.7.6/mbedtls-2.4.0/programs/test/
Dudp_proxy.c379 size_t id = p->len % sizeof( dropped ); in update_dropped() local
384 ++dropped[id]; in update_dropped()
394 id = len % sizeof( dropped ); in update_dropped()
395 ++dropped[id]; in update_dropped()
407 size_t id; in handle_message() local
422 id = cur.len % sizeof( dropped ); in handle_message()
432 dropped[id] < DROP_MAX && in handle_message()
445 dropped[id] < DROP_MAX && in handle_message()
/net-tools-2.7.6/tinydtls-0.8.2/tests/
Ddtls-server.c56 const unsigned char *id, size_t id_len, in get_psk_info() argument
60 unsigned char *id; in get_psk_info() member
77 if (id) { in get_psk_info()
80 if (id_len == psk[i].id_length && memcmp(id, psk[i].id, id_len) == 0) { in get_psk_info()
/net-tools-2.7.6/
Dzeth-vlan.conf39 type vlan id ${VLAN_1_ID}
41 type vlan id ${VLAN_2_ID}
Dloop-slip-tap.sh33 if [ `id -u` != 0 ]; then
Dloop-slip.sh30 if [ `id -u` != 0 ]; then
Dloop-radvd.sh56 if [ `id -u` != 0 ]; then
/net-tools-2.7.6/mbedtls-2.4.0/include/mbedtls/
Dpkcs12.h113 mbedtls_md_type_t mbedtls_md, int id, int iterations );
Dx509_crt.h100 #define MBEDTLS_X509_ID_FLAG( id ) ( 1 << ( id - 1 ) ) argument

123