Commit Graph

53 Commits

Author SHA1 Message Date
Edvard Pettersen
7b221dd09f Added missing standard header 2018-08-31 11:05:32 +02:00
Sam Kumar
02dd484ff2 Fix bug in CoAP retransmission policy 2018-08-25 22:15:45 -07:00
Joakim Eriksson
351908a1ba
Merge branch 'develop' into fix/coap-endpoint-is-reachable 2018-08-10 21:46:29 +02:00
carlosgp143@gmail.com
2db8fa80e2 Unified coap_request_state and added status for extra information 2018-06-29 09:33:18 +02:00
Niclas Finne
f873fa25bf coap: bug fix when parsing secure CoAP endpoint with a specified port.
Thanks to Carlos Gonzalo Peces for reporting the issue.
2018-05-29 14:15:05 +02:00
Joakim Eriksson
fd4d398f95
Merge branch 'develop' into contrib/lwm2m-queue-mode 2018-05-25 14:49:39 +02:00
carlosgp143@gmail.com
b50d143966 Added doxygen annotation to the prototype 2018-05-24 08:56:03 +02:00
carlosgp143@gmail.com
262cea11f1 Implemented instant feedback in CoAp_send_request 2018-05-24 08:54:28 +02:00
carlosgp143@gmail.com
d744e8306a Added Queue Mode implementation in LwM2M 2018-05-18 18:39:33 +02:00
Simon Duquennoy
a0d7f1d041 CoAP: enable reaching link-local endpoints regardless of routing reachability 2018-05-12 12:18:22 -07:00
George Oikonomou
b45d284be2 Merge branch 'release-4.1' into develop 2018-05-09 22:18:01 +01:00
Niclas Finne
f6330996f7 dtls: shorter log module name for aligned log output 2018-05-04 11:11:17 +02:00
Niclas Finne
5c4fad921e coap: shorter log module names for aligned log output 2018-05-04 11:02:37 +02:00
Simon Duquennoy
f9a1f958e1 Merge remote-tracking branch 'origin/release-4.1' into develop 2018-04-20 08:37:14 -07:00
Simon Duquennoy
5e753f73d0
Merge branch 'release-4.1' into contrib/coap-block2-offset 2018-04-13 16:52:25 +02:00
Simon Duquennoy
02b96f7474 Remove warning in case coap_engine_init is called twice 2018-04-13 06:51:33 -07:00
Simon Duquennoy
7a96a8f8a9 CoAP: auto-initialize module 2018-04-13 06:51:33 -07:00
Simon Duquennoy
cc37c1a558 CoAP: enable calling coap_get_payload with a NULL pointer 2018-04-13 06:51:33 -07:00
Simon Duquennoy
6022585ad0
Merge branch 'release-4.1' into fix/coap_get_payload 2018-04-13 14:39:39 +02:00
Simon Duquennoy
0df3c4fb90 CoAP: enable calling coap_get_payload with a NULL pointer 2018-04-13 05:37:10 -07:00
Niclas Finne
24e24b8edc coap: added check for block offset overflow in block2 requests.
The block offset is stored in a signed variable in calls to CoAP handlers and
too large block offsets will overflow into negative values.

Thanks to Bruno Melo for reporting this issue.
2018-04-13 14:18:21 +02:00
Simon Duquennoy
9dfcb2ebb6 Various logging improvements 2018-04-05 20:47:02 +02:00
Johan Liseborn
512d648319
Merge branch 'develop' into fix_observer 2018-03-20 10:32:09 +01:00
Simon Duquennoy
80c9f9ea1f http-socket.h: include cc.h instead of re-defining MAX 2018-03-02 08:11:22 -08:00
Simon Duquennoy
9596a4285e Use PRI macros for safe printf and logs 2018-02-23 10:58:45 -08:00
Johan Liseborn
9aaba942e1 Handle block-wise transfer in observer notifications 2018-02-23 09:41:30 +01:00
Johan Liseborn
22e131bc6d Remove unused list of periodic services
The coap_resource_periodic_services list is no longer used, but it still
breaks the the observer functionality, so it should be removed.
2018-02-23 09:36:35 +01:00
Niclas Finne
a18aaa4e26 Show compile information about tinyDTLS license only once. 2018-01-19 06:49:53 +01:00
Niclas Finne
833da8df76 Added compile information about license when including tinyDTLS in build 2018-01-17 20:03:28 +01:00
Niclas Finne
6562b78c6c Updated DTLS support for new logging system 2018-01-17 20:02:40 +01:00
Niclas Finne
e746b024f0 CoAP: fixed typo in Doxygen comment 2018-01-12 18:57:14 +01:00
Niclas Finne
ee65ba289e lwm2m: moved LWM2M object resource IDs to each object header file.
Added Doxygen groups in CoAP and LWM2M.
2018-01-12 01:25:27 +01:00
Niclas Finne
2d31c06a1e CoAP: renamed OPTION_MAP_SIZE to COAP_OPTION_MAP_SIZE for consistency 2018-01-12 01:20:53 +01:00
Niclas Finne
e37dd179d1 CoAP: added missing UIP_LLH_LEN in buffer size check as described by
Laurent Deru in #242.
2018-01-12 01:20:53 +01:00
Niclas Finne
ffffb0a9ad Fixed compiler warning in CoAP logging 2018-01-12 01:20:53 +01:00
Niclas Finne
4c56184a9b Updated CoAP to use the logging module 2018-01-12 01:20:53 +01:00
Joakim Eriksson
6c729f50d6 added lwm2m-ipso test 2018-01-12 01:20:53 +01:00
Joakim Eriksson
c86b763e5d renamed coap packet to coap message - for naming closer to RFC 2018-01-12 01:20:53 +01:00
Niclas Finne
a866fcbfad CoAP: replaced coap_send_message() with coap_sendto() that returns
number of bytes sent or error.
2018-01-12 01:20:52 +01:00
Niclas Finne
074391fa7d CoAP: Various updates in coap-uip transport implementation
* Mark endpoint as secure regardless if DTLS peer exists or not
* Drop CoAP transmissions to endpoints that are not connected
* Debug output cleanup
2018-01-12 01:20:52 +01:00
Joakim Eriksson
379a3fac2b LWM2M fixed doxygen compile issues 2018-01-12 01:18:41 +01:00
Niclas Finne
ebb329de5c CoAP: added make option to specify CoAP DTLS keystore to use by default.
The currently available options are:

* none   - No keystore registered.
* simple - Keystore using fixed PSK credentials.
* lwm2m  - Keystore based on LWM2M security objects

If an application wants to provide its own keystore, it selects 'none'
and registers its own at startup.
2018-01-12 01:18:41 +01:00
Niclas Finne
ee8d85bde8 Imported CoAP from lwm2m-contiki at https://github.com/sics-iot/lwm2m-contiki 2018-01-12 01:18:41 +01:00
Laurent Deru
aae6276b56 Add missing UIP_LLH_LEN 2017-12-12 16:06:45 +01:00
Simon Duquennoy
a24a05f269 Fix CoAP bug with option parsing 2017-11-29 08:39:10 -08:00
George Oikonomou
163ccafcba Fix erroneous comment 2017-10-08 17:03:04 +01:00
George Oikonomou
ab7b4676e0 Make CoAP more configurable 2017-10-08 17:00:37 +01:00
Niclas Finne
cb5df665a2 Added boundary checks when parsing CoAP packets.
Thanks to Stephan Zeisberg for reporting this issue.
2017-09-29 10:57:09 +02:00
Simon Duquennoy
543408db68 Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
Simon Duquennoy
fc9e77b562 Move websocket implementation to os/net/app-layer/http-socket 2017-09-04 16:29:19 +02:00