From 1433fa50cb4e162a0557f207a1097d165392ba8e Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 10 Jan 2026 15:53:11 +0100 Subject: build: Fix missing DEBUG_PROTO options The DEBUG_PROTO_DHT and DEBUG_PROTO_LS build options were not correctly migrated to the new CMake modules. This adds them back. There was a non-implemented DEBUG_PROTO_OEP option. This removes that stale code. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- cmake/ipcp/unicast.cmake | 4 ++++ include/ouroboros/serdes-oep.h | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/cmake/ipcp/unicast.cmake b/cmake/ipcp/unicast.cmake index 8517f8af..2a2f7a3f 100644 --- a/cmake/ipcp/unicast.cmake +++ b/cmake/ipcp/unicast.cmake @@ -7,6 +7,10 @@ set(IPCP_UNICAST_MPL 100 CACHE STRING "Default maximum packet lifetime for the Unicast IPCP, in ms") set(PFT_SIZE 256 CACHE STRING "Prefix forwarding table size for the Unicast IPCP") +set(DEBUG_PROTO_DHT FALSE CACHE BOOL + "Add DHT protocol debug logging") +set(DEBUG_PROTO_LS FALSE CACHE BOOL + "Add link state protocol debug logging") # Generate DHT protobuf files protobuf_generate_c(DHT_PROTO_SRCS DHT_PROTO_HDRS "${UNICAST_SOURCE_DIR}/dir/dht.proto") diff --git a/include/ouroboros/serdes-oep.h b/include/ouroboros/serdes-oep.h index af4446c1..f7d8561a 100644 --- a/include/ouroboros/serdes-oep.h +++ b/include/ouroboros/serdes-oep.h @@ -66,12 +66,4 @@ ssize_t enroll_ack_ser(const struct enroll_ack * ack, int enroll_ack_des(struct enroll_ack * ack, const buffer_t buf); -#ifdef DEBUG_PROTO_OEP -void debug_enroll_req(const struct enroll_req * req); - -void debug_enroll_resp(const struct enroll_resp * resp); - -void debug_enroll_ack(const struct enroll_ack * ack); -#endif /* DEBUG_PROTO_OEP */ - #endif /* OUROBOROS_LIB_SERDES_OEP_H*/ -- cgit v1.2.3