summaryrefslogtreecommitdiffstats
path: root/isisd/isis_main.c
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-03-22 15:01:08 +0100
committerChristian Franke <chris@opensourcerouting.org>2018-09-05 11:38:12 +0200
commit7c0cbd0e8879ef85469cd2da606cdabdb374cf01 (patch)
tree8999de060c8affdb9cb2e476369d5238524fae7c /isisd/isis_main.c
parentMerge pull request #2971 from qlyoung/misc-doc-updates (diff)
downloadfrr-7c0cbd0e8879ef85469cd2da606cdabdb374cf01.tar.xz
frr-7c0cbd0e8879ef85469cd2da606cdabdb374cf01.zip
fabricd: add new daemon as build of isisd
fabricd is built using the sources of isisd. To allow differentiation in the code, -DFABRICD=1 is added to its preprocessor flags. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_main.c')
-rw-r--r--isisd/isis_main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/isisd/isis_main.c b/isisd/isis_main.c
index 3b4168adb..2d96364af 100644
--- a/isisd/isis_main.c
+++ b/isisd/isis_main.c
@@ -59,6 +59,7 @@
#define ISISD_DEFAULT_CONFIG "isisd.conf"
/* Default vty port */
#define ISISD_VTY_PORT 2608
+#define FABRICD_VTY_PORT 2618
/* isisd privileges */
zebra_capabilities_t _caps_p[] = {ZCAP_NET_RAW, ZCAP_BIND};
@@ -145,9 +146,15 @@ struct quagga_signal_t isisd_signals[] = {
},
};
+#ifdef FABRICD
+FRR_DAEMON_INFO(fabricd, OPEN_FABRIC, .vty_port = FABRICD_VTY_PORT,
+
+ .proghelp = "Implementation of the OpenFabric routing protocol.",
+#else
FRR_DAEMON_INFO(isisd, ISIS, .vty_port = ISISD_VTY_PORT,
.proghelp = "Implementation of the IS-IS routing protocol.",
+#endif
.copyright =
"Copyright (c) 2001-2002 Sampo Saaristo,"
" Ofer Wald and Hannes Gredler",
@@ -164,7 +171,11 @@ int main(int argc, char **argv, char **envp)
{
int opt;
+#ifdef FABRICD
+ frr_preinit(&fabricd_di, argc, argv);
+#else
frr_preinit(&isisd_di, argc, argv);
+#endif
frr_opt_add("", longopts, "");
/* Command line argument treatment. */