Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 63) sorted by relevance

123

/net-tools-3.5.0/libcoap/include/coap/
Doption.h160 int coap_option_filter_set(coap_opt_filter_t filter, unsigned short type);
172 int coap_option_filter_unset(coap_opt_filter_t filter, unsigned short type);
184 int coap_option_filter_get(const coap_opt_filter_t filter, unsigned short type);
199 coap_option_setb(coap_opt_filter_t filter, unsigned short type) { in coap_option_setb() argument
200 return coap_option_filter_set(filter, type) ? 1 : -1; in coap_option_setb()
216 coap_option_clrb(coap_opt_filter_t filter, unsigned short type) { in coap_option_clrb() argument
217 return coap_option_filter_unset(filter, type) ? 1 : -1; in coap_option_clrb()
233 coap_option_getb(const coap_opt_filter_t filter, unsigned short type) { in coap_option_getb() argument
234 return coap_option_filter_get(filter, type); in coap_option_getb()
255 unsigned short type; /**< decoded option type */ member
[all …]
Dmem.h55 void *coap_malloc_type(coap_memory_tag_t type, size_t size);
65 void coap_free_type(coap_memory_tag_t type, void *p);
95 #define coap_malloc_type(type, size) memp_malloc(MEMP_ ## type) argument
96 #define coap_free_type(type, p) memp_free(MEMP_ ## type, p) argument
Dpdu.h177 unsigned int type:2; /* type flag */ member
187 unsigned int type:2; /* type flag */ member
288 coap_pdu_init(unsigned char type,
355 unsigned short type,
367 unsigned short type,
Dblock.h91 int coap_get_block(coap_pdu_t *pdu, unsigned short type, coap_block_t *block);
114 unsigned short type,
Dnet.h153 coap_register_option(coap_context_t *ctx, unsigned char type) { in coap_register_option() argument
154 coap_option_setb(ctx->known_options, type); in coap_register_option()
310 unsigned char type);
/net-tools-3.5.0/libcoap/src/
Dmem.c34 coap_malloc_type(coap_memory_tag_t type UNUSED_PARAM, size_t size) { in coap_malloc_type()
39 coap_free_type(coap_memory_tag_t type UNUSED_PARAM, void *p) { in coap_free_type()
77 get_container(coap_memory_tag_t type) { in get_container() argument
78 switch(type) { in get_container()
102 coap_malloc_type(coap_memory_tag_t type, size_t size) { in coap_malloc_type() argument
103 struct memb *container = get_container(type); in coap_malloc_type()
116 coap_free_type(coap_memory_tag_t type, void *object) { in coap_free_type() argument
117 memb_free(get_container(type), object); in coap_free_type()
Doption.c185 oi->type += option.delta; in coap_option_next()
197 (b = coap_option_getb(oi->filter, oi->type)) > 0) in coap_option_next()
209 coap_check_option(coap_pdu_t *pdu, unsigned short type, in coap_check_option() argument
214 coap_option_setb(f, type); in coap_check_option()
424 is_long_option(unsigned short type) { return type > 255; } in is_long_option() argument
450 unsigned short type, in coap_option_filter_op() argument
456 if (is_long_option(type)) { in coap_option_filter_op()
461 if (((of->mask & nr) > 0) && (of->long_opts[index] == type)) { in coap_option_filter_op()
475 if (((of->mask & nr) > 0) && (of->short_opts[index] == (type & 0xff))) { in coap_option_filter_op()
497 if (is_long_option(type)) { in coap_option_filter_op()
[all …]
Dpdu.c75 coap_pdu_init(unsigned char type, unsigned char code, in coap_pdu_init() argument
112 pdu->hdr->type = type; in coap_pdu_init()
171 coap_add_option(coap_pdu_t *pdu, unsigned short type, unsigned int len, const unsigned char *data) { in coap_add_option() argument
178 if (type < pdu->max_delta) { in coap_add_option()
187 type - pdu->max_delta, data, len); in coap_add_option()
194 pdu->max_delta = type; in coap_add_option()
203 coap_add_option_later(coap_pdu_t *pdu, unsigned short type, unsigned int len) { in coap_add_option_later() argument
210 if (type < pdu->max_delta) { in coap_add_option_later()
219 type - pdu->max_delta, NULL, len); in coap_add_option_later()
226 pdu->max_delta = type; in coap_add_option_later()
[all …]
Ddebug.c288 uint16_t type; in msg_option_string() member
319 if (option_type == options[i].type) { in msg_option_string()
333 unsigned int type; in print_content_format() member
351 if (format_type == formats[i].type) { in print_content_format()
386 pdu->hdr->version, msg_type_string(pdu->hdr->type), in coap_show_pdu()
405 switch (opt_iter.type) { in coap_show_pdu()
436 if (opt_iter.type == COAP_OPTION_URI_PATH || in coap_show_pdu()
437 opt_iter.type == COAP_OPTION_PROXY_URI || in coap_show_pdu()
438 opt_iter.type == COAP_OPTION_URI_HOST || in coap_show_pdu()
439 opt_iter.type == COAP_OPTION_LOCATION_PATH || in coap_show_pdu()
[all …]
Dblock.c45 coap_get_block(coap_pdu_t *pdu, unsigned short type, coap_block_t *block) { in coap_get_block() argument
52 if (pdu && (option = coap_check_option(pdu, type, &opt_iter))) { in coap_get_block()
64 coap_write_block_opt(coap_block_t *block, unsigned short type, in coap_write_block_opt() argument
110 coap_add_option(pdu, type, coap_encode_var_bytes(buf, ((block->num << 4) | in coap_write_block_opt()
Dnet.c461 if (opt_iter.type & 0x01) { in coap_option_check_critical()
463 switch (opt_iter.type) { in coap_option_check_critical()
477 if (coap_option_filter_get(ctx->known_options, opt_iter.type) <= 0) { in coap_option_check_critical()
478 debug("unknown critical option %d\n", opt_iter.type); in coap_option_check_critical()
484 if (coap_option_filter_set(unknown, opt_iter.type) == -1) { in coap_option_check_critical()
541 if (request && request->hdr->type == COAP_MESSAGE_CON) { in coap_send_ack()
650 unsigned char type) { in coap_send_message_type() argument
655 response = coap_pdu_init(type, 0, request->hdr->id, sizeof(coap_pdu_t)); in coap_send_message_type()
1037 int type; in coap_new_error_response() local
1052 type = request->hdr->type == COAP_MESSAGE_CON in coap_new_error_response()
[all …]
/net-tools-3.5.0/libcoap/tests/
Dtest_error_response.c37 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response1()
48 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response1()
66 pdu->hdr->type = COAP_MESSAGE_NON; in t_error_response2()
78 CU_ASSERT(response->hdr->type == COAP_MESSAGE_NON); in t_error_response2()
96 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response3()
111 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response3()
135 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response4()
150 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response4()
176 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response5()
191 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response5()
[all …]
Dtest_pdu.c35 CU_ASSERT(pdu->hdr->type == COAP_MESSAGE_CON); in t_parse_pdu1()
52 CU_ASSERT(pdu->hdr->type == COAP_MESSAGE_NON); in t_parse_pdu2()
98 CU_ASSERT(pdu->hdr->type == COAP_MESSAGE_NON); in t_parse_pdu5()
134 CU_ASSERT(pdu->hdr->type == COAP_MESSAGE_NON); in t_parse_pdu7()
160 CU_ASSERT(pdu->hdr->type == COAP_MESSAGE_NON); in t_parse_pdu8()
203 CU_ASSERT(pdu->hdr->type == COAP_MESSAGE_ACK); in t_parse_pdu11()
220 CU_ASSERT(pdu->hdr->type == COAP_MESSAGE_RST); in t_parse_pdu12()
260 pdu->hdr->type = COAP_MESSAGE_CON; in t_encode_pdu1()
279 pdu->hdr->type = COAP_MESSAGE_CON; in t_encode_pdu2()
313 pdu->hdr->type = COAP_MESSAGE_ACK; in t_encode_pdu4()
[all …]
Dtest_options.c499 CU_ASSERT(oi.type == 1); in t_iterate_option3()
504 CU_ASSERT(oi.type == 1); in t_iterate_option3()
509 CU_ASSERT(oi.type == 30); in t_iterate_option3()
541 CU_ASSERT(oi.type == 1); in t_iterate_option4()
546 CU_ASSERT(oi.type == 1); in t_iterate_option4()
551 CU_ASSERT(oi.type == 30); in t_iterate_option4()
582 CU_ASSERT(oi.type == 5); in t_iterate_option5()
617 CU_ASSERT(oi.type == 10); in t_iterate_option6()
622 CU_ASSERT(oi.type == 10); in t_iterate_option6()
627 CU_ASSERT(oi.type == 10); in t_iterate_option6()
[all …]
/net-tools-3.5.0/mbedtls-2.4.0/library/
Dpk_wrap.c60 static int rsa_can_do( mbedtls_pk_type_t type ) in rsa_can_do() argument
62 return( type == MBEDTLS_PK_RSA || in rsa_can_do()
63 type == MBEDTLS_PK_RSASSA_PSS ); in rsa_can_do()
152 items->type = MBEDTLS_PK_DEBUG_MPI; in rsa_debug()
158 items->type = MBEDTLS_PK_DEBUG_MPI; in rsa_debug()
183 static int eckey_can_do( mbedtls_pk_type_t type ) in eckey_can_do() argument
185 return( type == MBEDTLS_PK_ECKEY || in eckey_can_do()
186 type == MBEDTLS_PK_ECKEY_DH || in eckey_can_do()
187 type == MBEDTLS_PK_ECDSA ); in eckey_can_do()
268 items->type = MBEDTLS_PK_DEBUG_ECP; in eckey_debug()
[all …]
Dpk.c148 int mbedtls_pk_can_do( const mbedtls_pk_context *ctx, mbedtls_pk_type_t type ) in mbedtls_pk_can_do() argument
154 return( ctx->pk_info->can_do( type ) ); in mbedtls_pk_can_do()
195 int mbedtls_pk_verify_ext( mbedtls_pk_type_t type, const void *options, in mbedtls_pk_verify_ext() argument
203 if( ! mbedtls_pk_can_do( ctx, type ) ) in mbedtls_pk_verify_ext()
206 if( type == MBEDTLS_PK_RSASSA_PSS ) in mbedtls_pk_verify_ext()
312 if( prv->pk_info->type == MBEDTLS_PK_RSA_ALT ) in mbedtls_pk_check_pair()
314 if( pub->pk_info->type != MBEDTLS_PK_RSA ) in mbedtls_pk_check_pair()
371 return( ctx->pk_info->type ); in mbedtls_pk_get_type()
Dnet_sockets.c300 int type; in mbedtls_net_accept() local
307 socklen_t type_len = (socklen_t) sizeof( type ); in mbedtls_net_accept()
310 int type_len = (int) sizeof( type ); in mbedtls_net_accept()
315 (void *) &type, &type_len ) != 0 || in mbedtls_net_accept()
316 ( type != SOCK_STREAM && type != SOCK_DGRAM ) ) in mbedtls_net_accept()
321 if( type == SOCK_STREAM ) in mbedtls_net_accept()
355 if( type != SOCK_STREAM ) in mbedtls_net_accept()
/net-tools-3.5.0/mbedtls-2.4.0/programs/test/
Dudp_proxy.c295 const char *type; member
305 ellapsed_time(), p->way, p->type, p->len ); in print_packet()
308 p->way, p->type, p->len, why ); in print_packet()
319 strcmp( p->type, "ApplicationData" ) == 0 ) in send_packet()
342 strcmp( p->type, "ApplicationData" ) != 0 && in send_packet()
417 cur.type = msg_type( cur.buf, cur.len ); in handle_message()
428 strcmp( cur.type, "ApplicationData" ) != 0 && in handle_message()
430 strcmp( cur.type, "HelloVerifyRequest" ) == 0 ) && in handle_message()
438 strcmp( cur.type, "ChangeCipherSpec" ) == 0 ) || in handle_message()
440 strcmp( cur.type, "ApplicationData" ) != 0 && in handle_message()
[all …]
/net-tools-3.5.0/mbedtls-2.4.0/programs/pkey/
Dgen_key.c140 int type; /* the type of key to generate */ member
223 opt.type = DFL_TYPE; in main()
240 opt.type = MBEDTLS_PK_RSA; in main()
242 opt.type = MBEDTLS_PK_ECKEY; in main()
316 if( ( ret = mbedtls_pk_setup( &key, mbedtls_pk_info_from_type( opt.type ) ) ) != 0 ) in main()
323 if( opt.type == MBEDTLS_PK_RSA ) in main()
336 if( opt.type == MBEDTLS_PK_ECKEY ) in main()
/net-tools-3.5.0/
Dnet-capture.py28 type = "Ether" variable
68 type = a variable
88 packet = eval(type)(data)
/net-tools-3.5.0/mbedtls-2.4.0/include/mbedtls/
Dpk_internal.h38 mbedtls_pk_type_t type; member
47 int (*can_do)( mbedtls_pk_type_t type );
Dpk.h110 mbedtls_pk_debug_type type; member
257 int mbedtls_pk_can_do( const mbedtls_pk_context *ctx, mbedtls_pk_type_t type );
316 int mbedtls_pk_verify_ext( mbedtls_pk_type_t type, const void *options,
/net-tools-3.5.0/libcoap/examples/
Dcoap-client.txt.in17 *coap-client* [*-A* type1, _type2_ ,...] [*-t* type] [*-b* [num,]size]
66 *-t* type::
67 Content format for given resource for PUT/POST. 'type' must be either
84 *-A* type::
87 possible. 'type' must be either a numeric value reflecting a valid
141 Put the contents of file 'to_upload' with content type 'binary' (i.e.
Dclient.c143 pdu->hdr->type = msgtype; in coap_new_request()
242 if (pdu->hdr->type == COAP_MESSAGE_CON) in clear_obs()
250 } else if (pdu->hdr->type != COAP_MESSAGE_CON) in clear_obs()
342 if (!sent && (received->hdr->type == COAP_MESSAGE_CON || in message_handler()
343 received->hdr->type == COAP_MESSAGE_NON)) in message_handler()
348 if (received->hdr->type == COAP_MESSAGE_RST) { in message_handler()
366 unsigned short blktype = opt_iter.type; in message_handler()
408 if (pdu->hdr->type == COAP_MESSAGE_CON) in message_handler()
418 if (pdu->hdr->type != COAP_MESSAGE_CON) in message_handler()
481 if (pdu->hdr->type == COAP_MESSAGE_CON) in message_handler()
[all …]
/net-tools-3.5.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_pk.function67 void pk_utils( int type, int size, int len, char *name )
73 TEST_ASSERT( mbedtls_pk_setup( &pk, mbedtls_pk_info_from_type( type ) ) == 0 );
76 TEST_ASSERT( (int) mbedtls_pk_get_type( &pk ) == type );
77 TEST_ASSERT( mbedtls_pk_can_do( &pk, type ) );
222 void pk_ec_test_vec( int type, int id, char *key_str,
236 TEST_ASSERT( mbedtls_pk_setup( &pk, mbedtls_pk_info_from_type( type ) ) == 0 );
254 void pk_sign_verify( int type, int sign_ret, int verify_ret )
265 TEST_ASSERT( mbedtls_pk_setup( &pk, mbedtls_pk_info_from_type( type ) ) == 0 );
387 void pk_ec_nocrypt( int type )
402 TEST_ASSERT( mbedtls_pk_setup( &pk, mbedtls_pk_info_from_type( type ) ) == 0 );

123