net: coap: Define a symbol for fixed header size
Move the definition from the test suite to a public header.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
diff --git a/include/zephyr/net/coap.h b/include/zephyr/net/coap.h
index 599586c..22234e6 100644
--- a/include/zephyr/net/coap.h
+++ b/include/zephyr/net/coap.h
@@ -203,6 +203,7 @@
#define COAP_CODE_EMPTY (0)
#define COAP_TOKEN_MAX_LEN 8UL
+#define COAP_FIXED_HEADER_SIZE 4UL
/** @endcond */
diff --git a/tests/net/lib/coap/src/main.c b/tests/net/lib/coap/src/main.c
index abd82d6..55c6214 100644
--- a/tests/net/lib/coap/src/main.c
+++ b/tests/net/lib/coap/src/main.c
@@ -24,7 +24,6 @@
#include "net_private.h"
#define COAP_BUF_SIZE 128
-#define COAP_FIXED_HEADER_SIZE 4
#define NUM_PENDINGS 3
#define NUM_OBSERVERS 3