/net-tools-3.5.0/libcoap/include/coap/ |
D | option.h | 151 * Sets the corresponding entry for @p type in @p filter. This 153 * the given type does not fit in the filter). 156 * @param type The type for which the bit should be set. 160 int coap_option_filter_set(coap_opt_filter_t filter, unsigned short type); 163 * Clears the corresponding entry for @p type in @p filter. This 165 * the given type does not fit in the filter). 168 * @param type The type that should be cleared from the filter. 172 int coap_option_filter_unset(coap_opt_filter_t filter, unsigned short type); 175 * Checks if @p type is contained in @p filter. This function returns 177 * type does not fit in the filter). [all …]
|
D | mem.h | 25 * Type specifiers for coap_malloc_type(). Memory objects can be typed to 26 * facilitate arrays of type objects to be used instead of dynamic memory 47 * allocated memory. The @p type is used to select the appropriate storage 51 * @param type The type of object to be stored. 55 void *coap_malloc_type(coap_memory_tag_t type, size_t size); 58 * Releases the memory that was allocated by coap_malloc_type(). The type tag @p 59 * type must be the same that was used for allocating the object pointed to by 62 * @param type The type of the object to release. 65 void coap_free_type(coap_memory_tag_t type, void *p); 95 #define coap_malloc_type(type, size) memp_malloc(MEMP_ ## type) argument [all …]
|
D | coap_time.h | 58 * This data type is used to represent the difference between two clock_tick_t 59 * values. This data type must have the same size in memory as coap_tick_t to 81 * This data type represents internal timer ticks with COAP_TICKS_PER_SECOND 92 * This data type is used to represent the difference between two clock_tick_t 93 * values. This data type must have the same size in memory as coap_tick_t to 126 * signed data type. 134 * defined on a signed data type.
|
D | block.h | 79 * Initializes @p block from @p pdu. @p type must be either COAP_OPTION_BLOCK1 80 * or COAP_OPTION_BLOCK2. When option @p type was found in @p pdu, @p block is 84 * @param pdu The pdu to search for option @p type. 85 * @param type The option to search for (must be COAP_OPTION_BLOCK1 or 91 int coap_get_block(coap_pdu_t *pdu, unsigned short type, coap_block_t *block); 94 * Writes a block option of type @p type to message @p pdu. If the requested 106 * @param type COAP_OPTION_BLOCK1 or COAP_OPTION_BLOCK2. 114 unsigned short type,
|
D | pdu.h | 132 #define COAP_RESPONSE_415 COAP_RESPONSE_CODE(415) /* 4.15 Unsupported Media Type */ 143 /* CoAP media type encoding */ 155 * use an unallocated type here and hope for the best. */ 156 #define COAP_MEDIATYPE_ANY 0xff /* any media type */ 177 unsigned int type:2; /* type flag */ member 187 unsigned int type:2; /* type flag */ member 279 * @param type The type of the PDU (one of COAP_MESSAGE_CON, COAP_MESSAGE_NON, 288 coap_pdu_init(unsigned char type, 347 * Adds option of given type to pdu that is passed as first 355 unsigned short type, [all …]
|
D | net.h | 147 * Registers the option type @p type with the given context object @p ctx. 150 * @param type The option type to register. 153 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() 231 * Content-Type @c 0. 292 * Helper funktion to create and send a message with @p type (usually ACK or 301 * @param type Which type to set. 310 unsigned char type); 490 if (opt_iter.type & 0x01) {
|
/net-tools-3.5.0/libcoap/examples/ |
D | etsi_testcases.sh | 72 # client sends GET request with Type=0(CON) and Code=1(GET) 74 # check if sent request contains Type value indicating 0 and Code 78 # the same Message ID as that of previous request, content type option 95 # client sends POST with Type=0(CON), Code=2(POST), arbitrary payload, 96 # Content type option 98 # check: client sends request containing Type value indicating 0 and 104 # message ID as that of the previous request, Content type option 109 # -t 0: content type text/plain 121 # Client sends a PUT request with Type=0(CON), Code=3(PUT), arbitrary 122 # payload, content type option [all …]
|
D | coap-client.txt.in | 17 *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.
|
/net-tools-3.5.0/libcoap/src/ |
D | option.c | 185 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() 422 /** Returns true iff @p type denotes an option type larger than 255. */ 424 is_long_option(unsigned short type) { return type > 255; } in is_long_option() argument 430 * Applies @p op on @p filter with respect to @p type. The following 433 * FILTER_SET: Store @p type into an empty slot in @p filter. Returns 436 * FILTER_CLEAR: Remove @p type from filter if it exists. 438 * FILTER_GET: Search for @p type in @p filter. Returns @c 1 if found, [all …]
|
D | mem.c | 34 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()
|
D | debug.c | 69 /* this array has the same order as the type log_t */ 184 memcpy(buf, "(unknown address type)", min(22, len)); in coap_print_addr() 262 /** Returns a textual description of the message type @p t. */ 288 uint16_t type; in msg_option_string() member 319 if (option_type == options[i].type) { in msg_option_string() 324 /* unknown option type, just print to buf */ 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() [all …]
|
D | pdu.c | 75 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 …]
|
D | resource.c | 26 #define COAP_MALLOC_TYPE(Type) \ argument 27 ((coap_##Type##_t *)memp_malloc(MEMP_COAP_##Type)) 28 #define COAP_FREE_TYPE(Type, Object) memp_free(MEMP_COAP_##Type, Object) argument 34 #define COAP_MALLOC_TYPE(Type) \ argument 35 ((coap_##Type##_t *)coap_malloc(sizeof(coap_##Type##_t))) 36 #define COAP_FREE_TYPE(Type, Object) coap_free(Object) argument 42 #define COAP_MALLOC_TYPE(Type) \ argument 43 ((coap_##Type##_t *)memb_alloc(&(Type##_storage))) 44 #define COAP_FREE_TYPE(Type, Object) memb_free(&(Type##_storage), (Object)) argument 652 response->hdr->type = COAP_MESSAGE_NON; [all …]
|
D | block.c | 45 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()
|
/net-tools-3.5.0/ |
D | net-capture.py | 28 type = "Ether" variable 42 "\n\t[-t | --type <L2 type of the data>]" + 43 f"\n\t\tScapy L2 type name of the UDP payload, default is {type}" + 51 'quiet', 'type=', 'write=']) 67 elif o in ("-t", "--type"): 68 type = a variable 88 packet = eval(type)(data)
|
D | .shippable.yml | 28 type: slack 37 type: email
|
/net-tools-3.5.0/mbedtls-2.4.0/include/mbedtls/ |
D | pk.h | 53 #define MBEDTLS_ERR_PK_TYPE_MISMATCH -0x3F00 /**< Type mismatch, eg attempt to encrypt with … 110 mbedtls_pk_debug_type type; member 173 * \brief Return information associated with the given PK type 175 * \param pk_type PK type to search for. 177 * \return The PK info associated with the type or NULL if not found. 193 * and allocates the type-specific PK subcontext. 195 * \param ctx Context to initialize. Must be empty (type NONE). 211 * \param ctx Context to initialize. Must be empty (type NONE). 249 * \brief Tell if a context can do the operation given by type 252 * \param type Target type [all …]
|
D | pk_internal.h | 37 /** Public key type */ 38 mbedtls_pk_type_t type; member 40 /** Type name */ 46 /** Tell if the context implements this type (e.g. ECKEY can do ECDSA) */ 47 int (*can_do)( mbedtls_pk_type_t type );
|
/net-tools-3.5.0/mbedtls-2.4.0/library/ |
D | pk_wrap.c | 60 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 …]
|
D | pk.c | 73 * Get pk_info structure from type 146 * Tell if a PK can do the operations of the given type 148 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() 353 * Access the PK type name [all …]
|
/net-tools-3.5.0/libcoap/tests/ |
D | test_error_response.c | 37 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 …]
|
D | test_pdu.c | 35 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 …]
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/pkey/ |
D | gen_key.c | 115 " type=rsa|ec default: rsa\n" \ 140 int type; /* the type of key to generate */ member 223 opt.type = DFL_TYPE; in main() 237 if( strcmp( p, "type" ) == 0 ) 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() 349 mbedtls_printf( " failed\n ! key type not supported\n" ); in main() [all …]
|
/net-tools-3.5.0/python-websocket-server/ |
D | client.html | 5 <script type="text/javascript"> 59 <input type="text" id="input"> 60 <input type="submit" value="Send">
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/test/ |
D | udp_proxy.c | 295 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() 366 * only results in uninteresting timeouts. We can't rely on type to identify 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() [all …]
|