Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 45) sorted by relevance

12

/net-tools-3.5.0/libcoap/tests/
Dtest_error_response.c50 CU_ASSERT(response->hdr->code == 0x80); in t_error_response1()
80 CU_ASSERT(response->hdr->code == 0x84); in t_error_response2()
87 const unsigned char code = COAP_RESPONSE_CODE(402); in t_error_response3() local
89 0x65, code, 0x00, 0x00, 't', 'o', 'k', 'e', in t_error_response3()
105 response = coap_new_error_response(pdu, code, opts); in t_error_response3()
113 CU_ASSERT(response->hdr->code == code); in t_error_response3()
120 const unsigned char code = COAP_RESPONSE_CODE(402); in t_error_response4() local
126 0x65, code, 0x00, 0x00, 't', 'o', 'k', 'e', in t_error_response4()
144 response = coap_new_error_response(pdu, code, opts); in t_error_response4()
152 CU_ASSERT(response->hdr->code == code); in t_error_response4()
[all …]
Dtest_pdu.c37 CU_ASSERT(pdu->hdr->code == COAP_REQUEST_GET); in t_parse_pdu1()
54 CU_ASSERT(pdu->hdr->code == 0x69); in t_parse_pdu2()
100 CU_ASSERT(pdu->hdr->code == 0x73); in t_parse_pdu5()
136 CU_ASSERT(pdu->hdr->code == 0x73); in t_parse_pdu7()
162 CU_ASSERT(pdu->hdr->code == 0x73); in t_parse_pdu8()
205 CU_ASSERT(pdu->hdr->code == 0); in t_parse_pdu11()
222 CU_ASSERT(pdu->hdr->code == 0); in t_parse_pdu12()
261 pdu->hdr->code = COAP_REQUEST_GET; in t_encode_pdu1()
280 pdu->hdr->code = COAP_REQUEST_GET; in t_encode_pdu2()
314 pdu->hdr->code = 0x99; in t_encode_pdu4()
[all …]
/net-tools-3.5.0/libcoap/include/coap/
Dpdu.h112 char *coap_response_phrase(unsigned char code);
179 unsigned int code:8; /* request method (value 1--10) or response member
189 unsigned int code:8; /* request method (value 1--10) or response member
196 #define COAP_MESSAGE_IS_EMPTY(MSG) ((MSG)->code == 0)
198 && ((MSG)->code < 32))
199 #define COAP_MESSAGE_IS_RESPONSE(MSG) ((MSG)->code >= 64)
289 unsigned char code,
Dnet.h244 unsigned char code,
288 unsigned char code,
/net-tools-3.5.0/libcoap/src/
Dpdu.c75 coap_pdu_init(unsigned char type, unsigned char code, in coap_pdu_init() argument
113 pdu->hdr->code = code; in coap_pdu_init()
275 unsigned char code; member
306 coap_response_phrase(unsigned char code) { in coap_response_phrase() argument
308 for (i = 0; coap_error[i].code; ++i) { in coap_response_phrase()
309 if (coap_error[i].code == code) in coap_response_phrase()
364 pdu->hdr->code = data[1]; in coap_pdu_parse()
369 if (pdu->hdr->code == 0) { in coap_pdu_parse()
Dnet.c567 COAP_RESPONSE_CLASS(pdu->hdr->code) > 2) { in coap_send_impl()
628 unsigned char code, in coap_send_error() argument
636 response = coap_new_error_response(request, code, opts); in coap_send_error()
805 if (node->pdu->hdr->code >= 64) { in coap_retransmit()
1032 coap_new_error_response(coap_pdu_t *request, unsigned char code, in coap_new_error_response() argument
1042 char *phrase = coap_response_phrase(code); in coap_new_error_response()
1097 response = coap_pdu_init(type, code, request->hdr->id, size); in coap_new_error_response()
1180 resp->hdr->code = COAP_RESPONSE_CODE(400); in coap_wellknown_response()
1190 resp->hdr->code = COAP_RESPONSE_CODE(400); in coap_wellknown_response()
1265 resp->hdr->code = COAP_RESPONSE_CODE(503); in coap_wellknown_response()
[all …]
/net-tools-3.5.0/mbedtls-2.4.0/programs/ssl/
Dssl_mail_client.c243 char code[4]; in write_ssl_and_get_response() local
281 code[ idx++ ] = data[i]; in write_ssl_and_get_response()
285 if( idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ' ) in write_ssl_and_get_response()
287 code[3] = '\0'; in write_ssl_and_get_response()
288 return atoi( code ); in write_ssl_and_get_response()
301 char code[4]; in write_and_get_response() local
331 code[ idx++ ] = data[i]; in write_and_get_response()
335 if( idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ' ) in write_and_get_response()
337 code[3] = '\0'; in write_and_get_response()
338 return atoi( code ); in write_and_get_response()
/net-tools-3.5.0/mbedtls-2.4.0/scripts/data_files/
Derror.fmt65 // BEGIN generated code
67 // END generated code
78 // If high level code is present, make a concatenation between both
96 // BEGIN generated code
98 // END generated code
/net-tools-3.5.0/libcoap/examples/
Detsi_iot_01.c134 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_index()
157 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_get_resource()
162 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_resource()
183 response->hdr->code = COAP_RESPONSE_CODE(400); in hnd_get_resource()
189 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_get_resource()
217 strlen(coap_response_phrase(response->hdr->code)), in hnd_get_resource()
218 (unsigned char *)coap_response_phrase(response->hdr->code)); in hnd_get_resource()
235 response->hdr->code = COAP_RESPONSE_CODE(202); in hnd_delete_resource()
263 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_post_test()
299 response->hdr->code = COAP_RESPONSE_CODE(201); in hnd_post_test()
[all …]
Dcoap-rd.c108 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_resource()
132 response->hdr->code = COAP_RESPONSE_CODE(501); in hnd_put_resource()
141 unsigned char code; /* result code */ in hnd_put_resource()
157 code = COAP_RESPONSE_CODE(503); in hnd_put_resource()
173 code = COAP_RESPONSE_CODE(204); in hnd_put_resource()
178 code = COAP_RESPONSE_CODE(503); in hnd_put_resource()
183 response = coap_pdu_init(type, code, request->hdr->id, size); in hnd_put_resource()
220 response->hdr->code = COAP_RESPONSE_CODE(202); in hnd_delete_resource()
233 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_rd()
406 response->hdr->code = COAP_RESPONSE_CODE(500); in hnd_post_rd()
[all …]
Dclient.c145 pdu->hdr->code = m; in coap_new_request()
305 ((Pdu)->hdr->code == COAP_RESPONSE_CODE(201) || \
306 (Pdu)->hdr->code == COAP_RESPONSE_CODE(204)))
334 (received->hdr->code >> 5), received->hdr->code & 0x1F); in message_handler()
354 if (COAP_RESPONSE_CLASS(received->hdr->code) == 2) { in message_handler()
506 if (COAP_RESPONSE_CLASS(received->hdr->code) >= 4) { in message_handler()
508 (received->hdr->code >> 5), received->hdr->code & 0x1F); in message_handler()
595 unsigned char code; member
641 value[valcnt] = content_types[i].code; in cmdline_content_type()
Dcoap-server.c78 response->hdr->code = COAP_RESPONSE_CODE(205); in hnd_get_index()
110 response->hdr->code = in hnd_get_time()
176 response->hdr->code = in hnd_put_time()
226 response->hdr->code = COAP_RESPONSE_CODE(503); in hnd_get_async()
/net-tools-3.5.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_error.function11 void error_strerror( int code, char *result_str )
17 mbedtls_strerror( code, buf, 500 );
/net-tools-3.5.0/systemd/
DREADME.rst17 .. code-block:: console
27 .. code-block:: console
/net-tools-3.5.0/libcoap/
DLICENSE.GPL24 this service if you wish), that you receive source code or can get it
36 source code. And you must show them these terms so they know their
80 source code as you receive it, in any medium, provided that you
135 under Section 2) in object code or executable form under the terms of
139 source code, which must be distributed under the terms of Sections
145 machine-readable copy of the corresponding source code, to be
150 to distribute corresponding source code. (This alternative is
152 received the program in object code or executable form with such
155 The source code for a work means the preferred form of the work for
157 code means all the source code for all modules it contains, plus any
[all …]
DTODO29 --> How to implement/change platform related code?
33 -> Split of the platform related code into [foo]_platform.c files
DCONTRIBUTE126 * Single lines within the source code should not be longer then 78
144 * A useful source code documentation is mandatory. Mostly to be done within the
145 source code files, but more complex description should be done in extra
167 read your code but not necessary understand why the code is written this
196 We are always lacking on a better documentation on the source code, so
/net-tools-3.5.0/tinydtls-0.8.2/sha2/
DREADME15 license which appears at the top of each source code file.
59 * As mentioned above, this code has NOT been thoroughly tested.
87 By default, this code uses u_intXX_t data types for 8 bit, 32 bit, and
99 This code assumes that BYTE_ORDER will be defined by the system during
105 The code in sha2.c can use either memset()/memcpy() for memory block
107 code will default to memset()/memcpy(). You can define either at the
112 the code will use macros to partially "unroll" the SHA transform
114 not necessarily WILL) generate faster code when you tell your compiler
119 was SLOWER, much slower (I'm guessing because the code was breaking
125 The code in sha2.c and sha2.h is intended to be portable. It may
[all …]
/net-tools-3.5.0/libcoap/examples/contiki/
Dcoap-observer.c105 (received->hdr->code >> 5), received->hdr->code & 0x1F); in message_handler()
/net-tools-3.5.0/mbedtls-2.4.0/yotta/data/
DREADME.md3 …mbedded products, with a minimal code footprint. It offers an SSL library with an intuitive API an…
35 … projects, and disables all features that are older or less common, to minimize the code footprint.
71 While the two editions share the same code base, there are still a number of differences, mainly in…
90 * Simple bug fixes to existing code do not contain copyright themselves and we can integrate withou…
92 * For larger contributions, such as a new feature, the code can possibly fall under copyright law. …
/net-tools-3.5.0/mbedtls-2.4.0/
DREADME.md59 In order to build from the source code using Make, just enter at the command line:
108 - Release. This generates the default code without any unnecessary information in the binary file…
109 - Debug. This generates debug information and disables optimization of the code.
110 - Coverage. This generates code coverage information in addition to debug information.
111code with AddressSanitizer to check for memory errors. (This includes LeakSanitizer, with recent v…
113 - MemSan. This instruments the code with MemorySanitizer to check for uninitialised memory reads.…
139 …y focus on a single feature or usage scenario, so keep that in mind when copying parts of the code.
164 …tributor's License Agreement (CLA) to be accepted. This is because source code can possibly fall u…
/net-tools-3.5.0/tinydtls-0.8.2/tests/
Ddtls-server.c245 dtls_alert_level_t level, unsigned short code) in handle_event() argument
247 printf("event: level %d code %d\n", level, code); in handle_event()
252 if (code == DTLS_EVENT_CONNECTED) { in handle_event()
Ddtls-client.c309 dtls_alert_level_t level, unsigned short code) in handle_event() argument
311 printf("event: level %d code %d\n", level, code); in handle_event()
316 if (code == DTLS_EVENT_CONNECTED) { in handle_event()
/net-tools-3.5.0/docker/
DDockerfile23 RUN git clone https://git.code.sf.net/p/linuxptp/code linuxptp && \
/net-tools-3.5.0/
Dcoap-client.c1034 dtls_alert_level_t level, unsigned short code) in handle_event() argument
1041 printf("event: level %d code %d\n", level, code); in handle_event()
1049 if (code == DTLS_EVENT_CONNECTED) { in handle_event()
1167 pdu->hdr->code = m; in coap_new_request()
1350 (received->hdr->code >> 5), received->hdr->code & 0x1F); in coap_message_handler()
1368 if (COAP_RESPONSE_CLASS(received->hdr->code) == 2) { in coap_message_handler()
1458 if (COAP_RESPONSE_CLASS(received->hdr->code) >= 4) { in coap_message_handler()
1460 (received->hdr->code >> 5), in coap_message_handler()
1461 received->hdr->code & 0x1F); in coap_message_handler()

12