netif: Create netif layer, initially provide datagram read/write

Add in skeleton coap_netif.c coap_netif_internal.h files, populated with
coap_netif_dgrm_read(), coap_netif_dgrm_read_ep(), and coap_netif_dgrm_write()
functions that are called by the CoAP and (D)TLS code which in turn call
the appropriate coap_socket_*() functions.

The coap_dtls_send() function parameters are aligned with
coap_netif_dgrm_write().
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2023-03-01 13:58:06 +00:00
1 parent 62c57e4842
commit f933c6e604
30 files changed
+362 -95

No files matched your search

+1
View File
@@ -143,6 +143,7 @@ COAP_SRC = coap_address.c \
coap_io.c \
coap_io_lwip.c \
net.c \
coap_netif.c \
coap_notls.c \
coap_option.c \
coap_oscore.c \
+2
View File
@@ -43,4 +43,6 @@
#define HAVE_SNPRINTF
#define HAVE_ERRNO_H
#endif /* COAP_CONFIG_H_ */
+2
View File
@@ -43,4 +43,6 @@
#define HAVE_SNPRINTF
#define HAVE_ERRNO_H
#endif /* COAP_CONFIG_H_ */