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
Jon Shallow
52dcc5201b
Reliable PDUs: coap_show_pdu(): Do not show all the non-reliable headers
2023-07-05 10:53:00 +01:00
Jon Shallow
ca1e4098b0
pre-commit: Include re-styled OSCORE files to checks
2023-07-05 10:50:25 +01:00
Jon Shallow
fb4b5f33f2
New Issue: Update / clarify requirements when submitting an Issue
2023-07-03 12:12:19 +01:00
Jon Shallow
a3591eca55
RIOT: Stop objdump analyzing the built examples
2023-07-03 12:00:14 +01:00
Jon Shallow
9920d3e295
pre-commit: Add in initial support
...
Add in github workflow.
Add in .pre-commit-config.yaml.
Updated man directory using pre-commit.
Others to follow.
2023-07-03 08:57:09 +01:00
Jon Shallow
64450b6ec8
coap_mbedtls.c: Add in Connection ID support (RFC9146)
...
Requires MbedTLS 3.2.0 or later and MBEDTLS_SSL_DTLS_CONNECTION_ID defined
(which is the default in later versions of MbedTLS).
2023-07-03 08:54:56 +01:00
Jon Shallow
a9b179ab32
Coding: Remove blank lines at ends of files
2023-06-29 09:34:52 +01:00
Jon Shallow
5ac47de1a4
examples-code-check.c: Report on missing man pages
...
Set optional 2nd parameter to libcoap-3.sym to generate missing output.
2023-06-28 21:18:22 +01:00
Jon Shallow
31f692b8b2
man: Document WebSockets support
2023-06-28 21:16:11 +01:00
Jon Shallow
1dfae51f30
man: Fix coap_attribute() example
2023-06-28 10:25:51 +01:00
Jon Shallow
295afa9f95
man: Document deprecated functions
...
New: man/coap_deprecated.txt.in
2023-06-28 09:53:22 +01:00
Jon Shallow
e8da2324af
OSCORE: Log Initial B.2 response packet
...
Make configuation parameters checking more rigorous.
2023-06-20 09:22:19 +01:00
Jon Shallow
208cc87ff9
CMakeLists.txt: Description consistency tidy up.
2023-06-16 08:47:28 +01:00
Jon Shallow
2b81ffc2c0
configure.ac: Tidy up diagnostic output
2023-06-16 08:46:36 +01:00
Jon Shallow
71b84f550c
OSCORE: Fix logging entries
2023-06-15 18:59:54 +01:00
Jon Shallow
2f4b8843cd
DTLS Libraries: Replace HAVE_<dtlslib> defines with COAP_WITH_<dtls_lib>
...
Prevents possibility of name clashes when integrating with other code / OS.
2023-06-15 18:54:29 +01:00