Koen Zandberg
19ff949404
cord: include gcoap_req_send returning 0 in error
...
gcoap_req_send returns 0 if it was unable to send the CoAP request. CoRD
did not include that case in the return code checks. This changes CoRD
to include it and drop the registration if CoAP could not send the
request. The old behaviour made the CoRD thread lock up.
2023-03-13 11:49:37 +01:00
Benjamin Valentin
7468c6272b
nanocoap_link_format: fix off-by-one error
2023-02-23 16:34:56 +01:00
chrysn
5db24d4f51
gcoap: Rename gcoap_get_resource_list_tl to gcoap_get_resource_list
...
This is an API change in the latter, which would typically now take an
extra argument GCOAP_SOCKET_TYPE_UNDEF.
Follow-Up-For: https://github.com/RIOT-OS/RIOT/pull/16688
2023-02-21 20:22:46 +01:00
bors[bot]
96a7d0d466
Merge #19142
...
19142: sock_dtls: move common code into sock_dtls_establish_session() r=benpicco a=benpicco
Co-authored-by: Benjamin Valentin <benpicco@beuth-hochschule.de>
2023-02-19 22:11:05 +00:00
Benjamin Valentin
df4ef80790
sock_dodtls: make use of sock_dtls_establish_session()
2023-02-19 15:10:46 +01:00
chrysn
ac3a9cdf83
gcoap: Do not send responses from multicast addresses
2023-02-13 21:46:12 +01:00
chrysn
54037f5c2d
gcoap: Alter indirection level of _memo_ep_is_multicast
2023-02-13 20:32:29 +01:00
Benjamin Valentin
5134b5c7d5
nanocoap_sock: make use of sock_dtls_establish_session()
2023-02-08 15:57:28 +01:00
Benjamin Valentin
0a453ae679
sys/net/dhcpv6: let dhcpv6_client_req_ia_pd() return error
2023-02-01 23:25:22 +01:00
Benjamin Valentin
54fe031705
sys/net/dhcpv6: add IA Prefix Option in SOLICIT
...
Add the IA Prefix Option when soliciting a prefix so we can tell the
server what prefix length we want.
2023-02-01 23:25:22 +01:00
Benjamin Valentin
d041a5fb1a
nanocoap_sock: store message ID in nanocoap_sock_t
2023-01-20 01:50:10 +01:00
bors[bot]
d6f44f6206
Merge #18414
...
18414: gcoap/fileserver: add event callbacks r=benpicco a=benpicco
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-01-16 22:23:46 +00:00
Benjamin Valentin
47295cc929
gcoap/fileserver: add event callbacks
2023-01-16 10:25:00 +01:00
bors[bot]
fb603f2660
Merge #18459 #18724 #19081 #19082 #19136
...
18459: makefiles/suit: make it possible to accept multiple SUIT keys r=miri64 a=benpicco
18724: nanocoap_sock: implement DTLS socket r=miri64 a=benpicco
19081: sys/stdio_udp: add stdio over UDP r=benpicco a=benpicco
19082: core/init: add early_init() r=benpicco a=benpicco
19136: CI: re-add "synchronize" event to check-labels r=miri64 a=kaspar030
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2023-01-13 13:50:55 +00:00
Benjamin Valentin
81625fd5f2
doc: sort all stdio implementations into sys_stdio group
2023-01-13 11:08:22 +01:00
Benjamin Valentin
d660e3ebbd
nanocoap_sock: implement DTLS socket
2023-01-13 00:17:32 +01:00
Benjamin Valentin
ad5b27df8e
nanocoap_sock: make nanocoap_sock_t a proper struct
2023-01-13 00:08:55 +01:00
bors[bot]
53176f7b9e
Merge #18134 #18738 #18939 #19118
...
18134: nanocoap_link_format: add helper function to parse Link Format r=kaspar030 a=benpicco
18738: nanocoap_sock: implement nanocoap_sock_delete() r=maribu a=benpicco
18939: gnrc_ipv6_nib: clean up _resolve_addr() r=maribu a=benpicco
19118: sys/ztimer: ztimer_mock: guard ztimer_ondemand static functions r=kaspar030 a=kaspar030
Co-authored-by: Benjamin Valentin <benpicco@beuth-hochschule.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2023-01-10 11:25:32 +00:00
Benjamin Valentin
59f067171f
core/init: call vfs_bind_stdio() in early_init()
2023-01-08 22:26:13 +01:00
bors[bot]
6cf2116ae8
Merge #18773
...
18773: nanocoap_sock: fix handling empty ACKs with separate response r=maribu a=benpicco
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
2023-01-06 01:07:57 +00:00
Benjamin Valentin
7b7c63b638
nanocoap_link_format: add helper function to parse link format
2022-12-11 23:39:47 +01:00
benpicco
e6284ec244
Merge pull request #18816 from benpicco/nanocoap_handle_req-ctx
...
nanocoap: add request context to coap_handle_req()
2022-11-23 20:36:50 +01:00
Benjamin Valentin
8a11ca2f87
nanocoap: don't hide coap_request_ctx_t content
2022-11-22 10:41:32 +01:00
benpicco
f8964c0149
Merge pull request #18827 from benpicco/nanocoap_block-fix
...
nanocoap_sock: don't store entire sock in coap_block_request_t
2022-11-08 10:49:39 +01:00
Benjamin Valentin
bd8b6e454d
nanocoap_sock: send ACK with empty code instead of 2.03
2022-11-03 23:33:57 +01:00
Benjamin Valentin
084f0287a3
nanocoap_sock: support handling empty ACKs with separate response
2022-11-03 23:26:51 +01:00
Benjamin Valentin
63c9dde3a4
nanocoap_sock: don't store entire sock in coap_block_request_t
2022-11-01 00:17:11 +01:00
Benjamin Valentin
3877a92ca4
nanocoap_vfs: don't close socket in nanocoap_vfs_put()
2022-10-31 23:51:08 +01:00
Benjamin Valentin
782910ade4
nanocoap_sock: only re-transmit CON messages
...
If a NON confirmable message is sent with a callback function,
not receiving a response in time would lead to a retransmission.
This is of course an error, as only CON messages are to be retransmitted.
2022-10-31 17:18:19 +01:00
Benjamin Valentin
55e13a9d61
nanocoap: add coap_request_ctx_init()
2022-10-28 15:24:23 +02:00
Benjamin Valentin
c6f9654461
nanocoap: request context to coap_handle_req()
2022-10-28 14:21:52 +02:00
Martine Lenders
d759d2d18b
Merge pull request #18772 from namib-project/accept-helper
...
sys/net/nanocoap: introduce Accept option helper
2022-10-20 04:13:33 +02:00
Jan Romann
d916b33bc6
sys/net/nanocoap: introduce Accept option helper
2022-10-19 16:44:13 +02:00
Hendrik van Essen
226dce01bf
examples/gcoap: add IPv4 support
2022-10-18 10:59:43 +02:00
benpicco
72d16e152a
Merge pull request #17983 from kfessel/p-remove-coap_pkt-token
...
net/nanocoap: remove coap_pkt token ptr
2022-10-16 04:21:47 +02:00
benpicco
4d0c533260
Merge pull request #18154 from benpicco/nanocoap_no-response
...
nanocoap: add support for no-response option
2022-10-15 21:16:00 +02:00
Leandro Lanzieri
70acefaa55
Merge pull request #18386 from miri64/gcoap_forward_proxy/enh/empty-ack
...
gcoap_forward_proxy: send empty ACK when response takes too long
2022-10-14 11:23:48 +02:00
Benjamin Valentin
1cfcb307f2
nanocoap_sock: add nanocoap_sock_{put, post}_non()
2022-10-13 19:04:09 +02:00
Benjamin Valentin
56f36c09a0
nanocoap: add support for no-response option
...
See https://datatracker.ietf.org/doc/rfc7967/
2022-10-13 19:04:09 +02:00
Benjamin Valentin
c656df9c3a
nanocoap_sock: implement nanocoap_sock_delete()
2022-10-13 18:56:28 +02:00
Martine Lenders
63c4fe5770
gcoap: fix "line is longer than 100 characters" pointed out by Vera++
2022-10-12 17:33:55 +02:00
chrysn
798dedd4d1
gcoap_forward_proxy: send empty ACK when response takes too long
...
Co-Authored-By: Martine S. Lenders <m.lenders@fu-berlin.de>
Signed-off-by: Martine Lenders <m.lenders@fu-berlin.de>
2022-10-12 17:33:55 +02:00
Benjamin Valentin
be1c46ef27
gcoap_fileserver: don't abort on duplicate packet
2022-10-12 00:45:28 +02:00
benpicco
4493afb582
Merge pull request #18639 from benpicco/nanocoap_sock_put_url
...
sys/shell: ncput: add option to read from stdin
2022-10-06 12:05:39 +02:00
Karl Fessel
14096a935f
sys/net: cleanup coap_pkt_t.token uses
2022-10-06 00:20:10 +02:00
3ee3d1b9ac
Merge pull request #18562 from MrKevinWeiss/pr/removemips
...
cpu/mips: Remove all mips
2022-09-30 10:47:09 +02:00
Martine Lenders
b9d7028a8f
coap: provide definition for version field value
2022-09-29 11:26:03 +02:00
benpicco
e9b5bd712c
Merge pull request #18651 from benpicco/gcoap-footgun
...
gcoap: accept resources in any order
2022-09-28 10:48:51 +02:00
Martine Lenders
b297b2bd14
Merge pull request #18471 from miri64/gcoap_forward_proxy/fix/copy-max_age
...
gcoap_forward_proxy: copy Max-Age from forwarded Valid if it exists
2022-09-28 04:36:16 +02:00
MrKevinWeiss
6cad5d2477
cpu/mips: Remove all mips
2022-09-27 13:42:37 +02:00