From 5be7b1ebd1ab2bce1d53552b627fe55f425bdb38 Mon Sep 17 00:00:00 2001
From: "Luke T. Shumaker" <lukeshu@lukeshu.com>
Date: Tue, 12 Nov 2024 13:19:09 -0700
Subject: Fuss with compile-time config

---
 cmd/sbc_harness/config/config.h | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

(limited to 'cmd/sbc_harness/config')

diff --git a/cmd/sbc_harness/config/config.h b/cmd/sbc_harness/config/config.h
index 5ee8634..e436eb5 100644
--- a/cmd/sbc_harness/config/config.h
+++ b/cmd/sbc_harness/config/config.h
@@ -12,7 +12,18 @@
 /**
  * How many W5500 chips we have.
  */
-#define CONFIG_W5500_NUM              1
+#define CONFIG_W5500_NUM                1
+
+/**
+ * When allocating an arbitrary local port, what range should it be
+ * allocated from?
+ *
+ * These are the default values of the Linux kernel's
+ * net.ipv4.ip_local_port_range, so I figure they're probably good
+ * values to use.
+ */
+#define CONFIG_W5500_LOCAL_PORT_MIN     32768
+#define CONFIG_W5500_LOCAL_PORT_MAX     60999
 
 /* 9P *************************************************************************/
 
@@ -44,10 +55,20 @@
 #define CONFIG_9P_MAX_FIDS            16
 #define CONFIG_9P_MAX_REQS            2
 #define CONFIG_9P_MAX_ERR_SIZE        128 /* 128 is what Plan 9 4e uses */
+#define CONFIG_9P_ENABLE_9P2000       1 /* bool */
+#define CONFIG_9P_ENABLE_9P2000_u     1 /* bool */
+#define CONFIG_9P_ENABLE_9P2000_e     0 /* bool */
+
+/* DHCP ***********************************************************************/
+
+#define CONFIG_DHCP_CAN_RECV_UNICAST_IP_WITHOUT_IP      0
+#define CONFIG_DHCP_DEBUG                               0
+#define CONFIG_DHCP_OPT_SIZE                            312 /* minimum of 312 */
+#define CONFIG_DHCP_SELECTING_NS                        (5*NS_PER_S)
 
 /* COROUTINE ******************************************************************/
 
-#define CONFIG_COROUTINE_DEFAULT_STACK_SIZE    512
+#define CONFIG_COROUTINE_DEFAULT_STACK_SIZE    (2*1024)
 #define CONFIG_COROUTINE_MEASURE_STACK         1 /* bool */
 #define CONFIG_COROUTINE_PROTECT_STACK         1 /* bool */
 #define CONFIG_COROUTINE_DEBUG                 0 /* bool */
-- 
cgit v1.2.3-2-g168b