summaryrefslogtreecommitdiffstats
path: root/sysdep/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/config.h')
-rw-r--r--sysdep/config.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/sysdep/config.h b/sysdep/config.h
index 4e2e8e7..95b20d4 100644
--- a/sysdep/config.h
+++ b/sysdep/config.h
@@ -36,12 +36,22 @@ typedef u16 word;
#endif
/* Path to configuration file */
-#ifdef DEBUGGING
-#define PATH_CONFIG "bird.conf"
-#define PATH_CONTROL_SOCKET "bird.ctl"
+#ifdef IPV6
+# ifdef DEBUGGING
+# define PATH_CONFIG "bird-6.conf"
+# define PATH_CONTROL_SOCKET "bird-6.ctl"
+# else
+# define PATH_CONFIG PATH_CONFIG_DIR "/bird-6.conf"
+# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird-6.ctl"
+# endif
#else
-#define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
-#define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl"
+# ifdef DEBUGGING
+# define PATH_CONFIG "bird.conf"
+# define PATH_CONTROL_SOCKET "bird.ctl"
+# else
+# define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
+# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl"
+# endif
#endif
#endif