summaryrefslogtreecommitdiff
path: root/lib9p
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p')
-rw-r--r--lib9p/include/lib9p/9p.h7
-rw-r--r--lib9p/tests/test_server/config/config.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/lib9p/include/lib9p/9p.h b/lib9p/include/lib9p/9p.h
index 68e007f..f743afb 100644
--- a/lib9p/include/lib9p/9p.h
+++ b/lib9p/include/lib9p/9p.h
@@ -19,6 +19,13 @@
#error config.h must define CONFIG_9P_MAX_ERR_SIZE
#endif
+/* constants ******************************************************************/
+
+enum {
+ LIB9P_DEFAULT_PORT_9FS = 564,
+ LIB9P_DEFAULT_PORT_STYX = 6666,
+};
+
/* strings ********************************************************************/
const char *lib9p_version_str(enum lib9p_version);
diff --git a/lib9p/tests/test_server/config/config.h b/lib9p/tests/test_server/config/config.h
index d852470..a3660e8 100644
--- a/lib9p/tests/test_server/config/config.h
+++ b/lib9p/tests/test_server/config/config.h
@@ -11,7 +11,7 @@
/* 9P *************************************************************************/
-#define CONFIG_9P_PORT 564
+#define CONFIG_9P_PORT LIB9P_DEFAULT_PORT_9FS
/**
* This max-msg-size is sized so that a Twrite message can return
* 8KiB of data.