/*
 * Ouroboros - Copyright (C) 2016 - 2026
 *
 * IPC process configuration
 *
 *    Dimitri Staessens <dimitri@ouroboros.rocks>
 *    Sander Vrijders   <sander@ouroboros.rocks>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., http://www.fsf.org/about/contact/.
 */

#define PTHREAD_COND_CLOCK  @PTHREAD_COND_CLOCK@

#define SYS_MAX_FLOWS       @SYS_MAX_FLOWS@
#define PROC_RES_FDS        @PROC_RES_FDS@
#define PROC_MAX_FLOWS      @PROC_MAX_FLOWS@

#define SOCKET_TIMEOUT      @SOCKET_TIMEOUT@
#define CONNECT_TIMEOUT     @CONNECT_TIMEOUT@

#define SSM_POOL_BLOCK_SIZE @SSM_POOL_BLOCK_SIZE@
#define DU_BUFF_HEADSPACE   @DU_BUFF_HEADSPACE@
#define DU_BUFF_TAILSPACE   @DU_BUFF_TAILSPACE@

#define IPCP_MIN_THREADS    @IPCP_MIN_THREADS@
#define IPCP_ADD_THREADS    @IPCP_ADD_THREADS@
#cmakedefine HAVE_LIBGCRYPT

#define IPCP_LINUX_SLACK_NS @IPCP_LINUX_TIMERSLACK_NS@

/* unicast IPCP */
#define QOS_PRIO_BE         @IPCP_QOS_CUBE_BE_PRIO@
#define QOS_PRIO_VIDEO      @IPCP_QOS_CUBE_VIDEO_PRIO@
#define QOS_PRIO_VOICE      @IPCP_QOS_CUBE_VOICE_PRIO@
#define IPCP_SCHED_THR_MUL  @IPCP_SCHED_THR_MUL@
#define PFT_SIZE            @PFT_SIZE@
#define IPCP_UNICAST_MPL    @IPCP_UNICAST_MPL@
#define IPCP_UNICAST_MTU    @IPCP_UNICAST_MTU@
#define CONNMGR_RCV_TIMEOUT @CONNMGR_RCV_TIMEOUT@

#cmakedefine DISABLE_CORE_LOCK
#cmakedefine BUILD_CONTAINER
#cmakedefine IPCP_FLOW_STATS
#cmakedefine IPCP_ETH_FLOW_STATS
#cmakedefine IPCP_DEBUG_LOCAL
#ifdef CONFIG_OUROBOROS_DEBUG
#cmakedefine DEBUG_PROTO_DHT
#cmakedefine DEBUG_PROTO_OEP
#cmakedefine DEBUG_PROTO_LS
#endif

/* udp */
#cmakedefine HAVE_DDNS
#define NSUPDATE_EXEC       "@NSUPDATE_EXECUTABLE@"
#define NSLOOKUP_EXEC       "@NSLOOKUP_EXECUTABLE@"
#define IPCP_UDP_RD_THR     @IPCP_UDP_RD_THR@
#define IPCP_UDP_WR_THR     @IPCP_UDP_WR_THR@
#define IPCP_UDP_MPL        @IPCP_UDP_MPL@
#define IPCP_UDP4_MTU       @IPCP_UDP4_MTU@
#define IPCP_UDP6_MTU       @IPCP_UDP6_MTU@

/* eth */
#cmakedefine HAVE_NETMAP
#cmakedefine HAVE_BPF
#cmakedefine HAVE_RAW_SOCKETS
#cmakedefine IPCP_ETH_QDISC_BYPASS
#define IPCP_ETH_RD_THR          @IPCP_ETH_RD_THR@
#define IPCP_ETH_WR_THR          @IPCP_ETH_WR_THR@
#define IPCP_ETH_LO_MTU          @IPCP_ETH_LO_MTU@
#define IPCP_ETH_MGMT_FRAME_SIZE @IPCP_ETH_MGMT_FRAME_SIZE@
#define IPCP_ETH_MPL             @IPCP_ETH_MPL@
#define IPCP_ETH_SNDBUF          @IPCP_ETH_SNDBUF@
#define IPCP_ETH_RCVBUF          @IPCP_ETH_RCVBUF@

/* local */
#define IPCP_LOCAL_MPL      @IPCP_LOCAL_MPL@
#define IPCP_LOCAL_MTU      @IPCP_LOCAL_MTU@

/* broadcast */
#define IPCP_BROADCAST_MPL  @IPCP_BROADCAST_MPL@
#define IPCP_BROADCAST_MTU  @IPCP_BROADCAST_MTU@
