diff options
-rw-r--r-- | cmd/sbc_harness/config/config.h | 2 | ||||
-rw-r--r-- | lib9p/include/lib9p/9p.h | 7 | ||||
-rw-r--r-- | lib9p/tests/test_server/config/config.h | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/cmd/sbc_harness/config/config.h b/cmd/sbc_harness/config/config.h index fa3236c..6046b31 100644 --- a/cmd/sbc_harness/config/config.h +++ b/cmd/sbc_harness/config/config.h @@ -31,7 +31,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. 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. |