Frederik Haxel
314dbf15b9
examples: Use size_t print format specifier
...
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:34 +01:00
Martine Lenders
2679fcafb1
examples/dtls-echo: set address family for sessions
...
d424aaedac
introduced address families to
the RIOT interpretation of tinydtls-`session_t`s. However, while fixing
the naming for the `addr` field, it did not set the `family` member for
the sessions in the `dtls-echo` example, having that example run into [an
assertion][1]. This patch fixes that.
[1]: bda40789a7/session.c (L146)
2022-07-26 15:51:07 +02:00
Hendrik van Essen
d424aaedac
pkg/tinydtls: add IPv4 support
2022-03-25 17:19:47 +01:00
Leandro Lanzieri
05db36a3d0
pkg/tinydtls: join IPv6 address and port in addr member
2022-03-25 09:44:44 +01:00
Karl Fessel
9a2ccd51f4
examples: add missing includes
...
thread.h
gnrc/netif.h
2022-02-28 14:53:08 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Bas Stottelaar
bf88a24fb4
examples/*: replace #if ENABLE_DEBUG with IS_ACTIVE
2020-11-02 21:49:28 +01:00
Bas Stottelaar
bb36bbc6ff
examples/*: realign ENABLE_DEBUG
2020-10-23 01:26:09 +02:00
Bas Stottelaar
2a818172a4
examples/*: add missing include of assert.h
2020-10-22 11:13:08 +02:00
Bas Stottelaar
1afeff7497
examples/*: add explicit include of timex.h
2020-10-21 21:47:31 +02:00
M Aiman Ismail
1980b94728
examples/dtls-echo: fix silent fail with ECC
2020-07-09 10:29:56 +02:00
Aiman Ismail
d5b2aa8a2f
pkg/tinydtls: Move configurations to 'CONFIG_' namespace
...
Macros that changed:
DTLS_PSK -> CONFIG_DTLS_PSK
DTLS_ECC -> CONFIG_DTLS_ECC (except in release-notes.txt)
DTLS_CONTEXT_MAX -> CONFIG_DTLS_CONTEXT_MAX
DTLS_PEER_MAX -> CONFIG_DTLS_PEER_MAX
DTLS_HANDSHAKE_MAX -> CONFIG_DTLS_HANDSHAKE_MAX
DTLS_SECURITY_MAX -> CONFIG_DTLS_SECURITY_MAX
DTLS_HASH_MAX -> CONFIG_DTLS_HASH_MAX
2020-03-05 19:11:38 +01:00
Sebastian Meiling
cdda4e423e
examples/dtls-echo: fix debug message
2019-12-13 23:29:40 +01:00
Leandro Lanzieri
65b852ba15
examples/dtls-echo: Adapt to change in ipv6_addr_split_iface
2019-11-15 14:02:50 +01:00
Leandro Lanzieri
c96b85da02
examples/dtls-echo: Use passed interface if present
2019-11-07 17:34:32 +01:00
Aiman Ismail
296ed87e8a
examples/dtls-echo: handle handshake failure alert
2019-10-21 13:24:35 +02:00
Martine Lenders
c2fa744f48
examples: dtls-echo: remove unneeded addressing operator
...
`SOCK_ADDR_ANY_NETIF` isn't a pointer so using the addressing operator
for `remote.netif` here is wrong.
2018-08-03 19:12:37 +02:00
Raul Fuentes
4092eda744
examples/dtls-echo: Cleaning and upgrade to sock
...
Due to all the changes, this is basically a new version for this
example. The main benefit is the use of sock_udp but also the client
side is now more robust and reliable.
The parameters required for the PSK and ECC (e.g. keys) modes are moved
to an unique header.
2018-07-04 11:35:08 +02:00
Martine Lenders
08964079e0
examples: tests: adapt udp shell commands for new forwarding engine
...
The NIB's forwarding engine behaves more correctly than GNRC's old
forwarding engine in that link-local addresses require also an
interface to be provided to be meaningful. As with other commands this
is simplified for the special case that there only is one interface
that that interface is chosen.
2017-11-21 10:40:01 +01:00
8501a03cbc
cleanup: apply enable_debug_false.cocci to codebase (coccinelle)
...
Skipped sys/cbor/cbor.c, examples/microcoap_server/microcoap_sock.c,
as they use different semantics.
2017-05-15 18:45:43 +02:00
3d48eee095
cleanup: apply remove_atoi_casts.cocci (coccinelle)
2017-05-13 12:39:48 +02:00
fc6560c118
examples/dtls-echo: remove unnused static property (coccinelle)
2017-05-11 13:42:45 +02:00
Martine Lenders
61531451f2
examples: fix off-by-one error in TinyDTLS example
2016-11-03 13:12:21 +01:00
Raul Fuentes
cf64aba1c8
TinyDTLS: integration into RIOT (without sockets)
...
Support for TinyDTLS (0.8.6) is added together an example at 'examples/dtls-echo'.
2016-10-30 18:05:25 +01:00