Jon Shallow
760dd4bc9b
RIOT: Add in cplusplus wrappers to example header files
2023-08-19 11:56:30 +01:00
kkrentz
45261daea9
coap_block.c: Use correct format specifier when logging chunk size
2023-08-16 21:04:34 +01:00
Olaf Bergmann
8ca36cdf05
coap_session.c: Fix GCC array bounds warning for memcpy
...
Copying from the multidimensional coap_layers_coap array into the
coap_layers of endpoint::sock.lfunc triggers a warning from
GCC v13.2.0 as the global variable has no space for the end marker
COAP_PROTO_LAST.
This change adds an assertion to indicate that proto is always less
than COAP_PROTO_LAST.
2023-08-15 13:15:22 +02:00
Jon Shallow
c8a305a6cd
SECURITY.md: Add in a security policy
2023-08-14 15:30:21 +01:00
Jon Shallow
8d81c9af21
assert: Fix compiler warnings when building with --disable-assert
2023-08-14 14:51:41 +01:00
Jon Shallow
5a9a6cc2c2
RIOT: Update PKG_URL and PKG_VERSION to latest 4.3.2rc2 code
v4.3.2-rc2
2023-08-14 10:43:28 +01:00
Jon Shallow
f176bf3c53
release 4.3.2rc2: Release candidate for 4.3.2
2023-08-14 09:37:23 +01:00
Jon Shallow
91000861e1
tinydtls: Update to latest main branch
2023-08-14 09:35:36 +01:00
Jon Shallow
76e8b0f029
Coverity: Fix CID 1382587, 1566422-1566493
2023-08-12 14:07:08 +01:00
Jon Shallow
ded6d04e1d
doc: Fix typos
2023-08-12 14:06:42 +01:00
kkrentz
a401a2aea0
Contiki-NG: Switch to secure PRNG
2023-08-07 14:03:10 +01:00
Jon Shallow
ef943c93a8
contiki/Makefile: Add in Contiki version check
...
Set to release/v4.9
2023-08-07 14:01:28 +01:00
Jon Shallow
65f0be894e
ESP-IDF: Fix handling broadcast address
2023-07-31 14:16:02 +01:00
Jon Shallow
7146a45fd0
ESP-IDF: Fix non IPv6 builds
2023-07-31 14:15:03 +01:00
Carsten Schoenert
36941566d6
man: Small typo fixes for coap[-client,-oscore]
...
Typo fixup for
seperator -> separator
particularily -> particularly
2023-07-31 08:54:16 +01:00
Jon Shallow
298a11e222
coap_uri.c: Fix potential buffer overflow
...
As reported by valgrind
2023-07-29 11:34:40 +01:00
Jon Shallow
cd7b5de109
Mutexes: Clean up / simplify use of mutexes
...
Not all OS implementations properly support static initializations.
2023-07-29 11:31:22 +01:00
Jon Shallow
3f8bb33807
coap_resolve_address_info: Add in support for defining WebSocket ports
2023-07-26 13:01:42 +01:00
Jon Shallow
59892918cd
coap_resolve_address_info: Simplify conditional OS logic
...
Handle implementations that do not fill in ai_socktype and hence remove any
duplicate entries.
2023-07-26 10:05:14 +01:00
Jon Shallow
f809315bbc
coap_ws.c: Unmask server data on oversize header reads
2023-07-26 08:12:31 +01:00
Jon Shallow
46f3d82400
esp-idf: Fix compiler warning
2023-07-25 16:16:52 +01:00
Jon Shallow
084c866c69
coap_startup: Make coap_startup() first function call in examples
...
This then makes sure that all things libcoap are properly initialized
before use, and coders realize they need to do this.
Note: coap_new_context() continues to make sure that coap_startup()
is invoked if not done previously, but this may be too late.
2023-07-25 13:50:18 +01:00
Jon Shallow
2f98643a09
lwip/Makefile: make sure correct hash is used for tinydtls with tarball build
2023-07-24 13:17:39 +01:00
Jon Shallow
c35c0783e2
RIOT: Update PKG_URL and PKG_VERSION to latest 4.3.2rc1 code
v4.3.2-rc1
2023-07-22 09:43:17 +01:00
Jon Shallow
cb78d5fd85
release 4.3.2rc1: Release candidate for 4.3.2
2023-07-22 09:29:32 +01:00
Jon Shallow
9763b3a25a
Documentation: Fix typos
2023-07-22 09:27:00 +01:00
Jon Shallow
4c879a58f3
net.c: Report COAP_NACK_RST for non-confirmable messages if RST seen
...
Call the nack handler (if set) and this is a RST packet that is not
a response to a confirmable packet.
2023-07-22 09:25:40 +01:00
Jon Shallow
e60205e52a
coap_session.c: Report COAP_NACK_ICMP_ISSUE for NON to NACK handler
2023-07-22 09:24:13 +01:00
Jon Shallow
15473b037e
layers: Update coap_layer_func_t function names to be prefixed with l_
...
Prevents issues with things such as '#define write lwip_write'.
2023-07-20 15:25:05 +01:00
Jon Shallow
4f164dcb2f
coap_mutex_internal.h: Support LwIP ! NO_SYS mutexes
2023-07-20 15:02:25 +01:00
Jon Shallow
90c1a98044
Logging: Fix COAP_MAX_LOGGING_LEVEL == 0 compile errors
2023-07-19 09:50:05 +01:00
Jon Shallow
b26ef52fca
coap_net.c: Handle Q-block2 not supported for FETCH
2023-07-18 09:41:27 +01:00
Jon Shallow
39e44693c1
src/coap:debug.c: Fix broken printing of Content-Format:
...
Fix location of terminating } following adding { to wrap a single line
statement block that covered many lines in commit
ba69c79262 .
2023-07-17 15:41:02 +01:00
Jon Shallow
8b5356fb61
esp-idf: Fixes for ESP-IDF environment
2023-07-17 09:45:10 +01:00
Jon Shallow
d17f47ab54
coap_address_t: Update functions documentation and add coap_is_af_unix()
2023-07-17 09:43:35 +01:00
Johan Mattsson
4dc295f7e9
Fix potential index out of bounds
2023-07-17 09:43:07 +01:00
Jon Shallow
7a5d13acec
pre-commit: Include re-styled src/coap_[t-z].c files to checks
2023-07-14 10:44:29 +01:00
Jon Shallow
755845c88f
pre-commit: Include re-styled src/coap_[o-s]*.c files to checks
2023-07-14 10:24:34 +01:00
Jon Shallow
12bd03ca02
pre-commit: Include re-styled src/coap_[h-n]*.c files to checks
2023-07-14 10:07:34 +01:00
Jon Shallow
ba69c79262
pre-commit: Include re-styled src/coap_[a-g]*.c files to checks
2023-07-14 09:55:31 +01:00
Jon Shallow
c46f9ca95c
coap_tinydtls.c: Fix recent removal of DTLS_EVENT_RENEGOTIATE from TinyDTLS
...
LwIP test build uses latest tinydtls source for DTLS builds.
2023-07-13 09:27:53 +01:00
Jon Shallow
a71b7930b9
pre-commit: Include re-styled examples files to checks
2023-07-13 09:01:41 +01:00
Jon Shallow
e2910a5bf1
naming: Rename remaining *.[ch] files that are not prefixed with coap_
...
include/coap3/block.h -> include/coap3/coap_block.h
include/coap3/pdu.h -> include/coap3/coap_pdu.h
include/coap3/resource.h -> include/coap3/coap_resource.h
src/block.c -> src/coap_block.c
src/net.c -> src/coap_net.c
src/pdu.c -> src/coap_pdu.c
src/resource.c -> src/coap_resource.c
2023-07-13 08:59:22 +01:00
Jon Shallow
8f068c0bbf
pre-commit: Include re-styled include files to checks
2023-07-11 20:17:10 +01:00
Jon Shallow
e55ecc9c9e
configure.ac: Tidy up summary output following a merge
2023-07-11 12:21:57 +01:00
Jon Shallow
57013f3377
RFC9177: Add in Q-Block support
...
examples/coap-client.c:
examples/coap-server.c:
Add in Q-Block intelligence.
include/coap3/block.h
include/coap3/coap_block_internal.h
include/coap3/coap_event.h
Add in Q-Block references.
Add in new functions
coap_block_check_q_block1_xmit()
coap_block_check_q_block2_xmit()
coap_send_q_blocks()
coap_send_q_block1()
coap_send_q_block2()
coap_block_drop_resp_q_block_xmit()
coap_block_drop_resp_q_block2_crcv()
coap_q_block_is_supported()
include/coap3/coap_session.h:
Add in new Congestion Control defaults and ability to configure them.
include/coap3/pdu.h:
Add in the new options.
libcoap-3.map:
libcoap-3.sym:
Expose external Congestion Control functions.
man/coap-client.txt.in:
man/coap-server.txt.in:
man/coap_block.txt.in:
man/coap_handler.txt.in:
man/coap_recovery.txt.in:
man/coap.txt.in:
Add in Q-Block information.
src/block.c:
Add in the new functions to support Q-Block.
src/coap_debug.c:
Output the new options as appropriate.
src/coap_io.c:
Check for Q-Block transmission timeouts.
src/coap_session.c:
Add in the Congestion Control support.
src/net.c:
src/resource.c:
Add in Q-Block support.
configure.ac
CMakeLists.txt
Add in support for enabling/disabling Q-Block support (enabled by default).
2023-07-11 11:04:04 +01:00
Jon Shallow
e8005c5c27
pre-commit: Include re-styled tests files to checks
2023-07-08 16:37:59 +01:00
Jon Shallow
f2a03df9a0
pre-commit: Include re-styled RIOT example files to checks
2023-07-06 12:11:38 +01:00
Jon Shallow
3755358b7d
pre-commit: Include re-styled LwIP and Contiki example files to checks
2023-07-06 11:45:47 +01:00
Magdalena Szumny
ed27226da8
Clear data offset for piggybacked response answering request with No_response
2023-07-06 11:45:28 +01:00