summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-12-14 19:30:44 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2016-12-20 17:57:47 +0100
commitb2f361571b2ada8e820ad8ab87c023479e3af90a (patch)
treef96a05e79aafa9484f7c241f42e64d1341c87379
parentdoc: use config values from configure in manpages (diff)
downloadfrr-b2f361571b2ada8e820ad8ab87c023479e3af90a.tar.xz
frr-b2f361571b2ada8e820ad8ab87c023479e3af90a.zip
build: rename (1 of ?): configure.ac + preproc
This replaces Quagga -> FRR in most configure.ac settings as well as a handful of preprocessor macros in the source code. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r--.gitignore5
-rw-r--r--bgpd/bgp_btoa.c6
-rw-r--r--bgpd/bgp_main.c10
-rwxr-xr-xconfigure.ac142
-rw-r--r--isisd/isis_main.c12
-rw-r--r--ldpd/lde.c6
-rw-r--r--ldpd/ldpd.c10
-rw-r--r--ldpd/ldpe.c6
-rw-r--r--lib/command.c20
-rw-r--r--lib/smux.c2
-rw-r--r--lib/version.h.in25
-rw-r--r--ospf6d/ospf6_main.c12
-rw-r--r--ospfd/ospf_main.c10
-rw-r--r--pimd/pim_main.c12
-rw-r--r--ripd/rip_main.c12
-rw-r--r--ripngd/ripng_main.c12
-rw-r--r--tests/main.c2
-rw-r--r--tests/test-privs.c8
-rw-r--r--vtysh/vtysh.c8
-rw-r--r--vtysh/vtysh_main.c2
-rw-r--r--vtysh/vtysh_user.c2
-rw-r--r--watchquagga/watchquagga.c4
-rw-r--r--zebra/main.c10
-rw-r--r--zebra/test_main.c4
24 files changed, 170 insertions, 172 deletions
diff --git a/.gitignore b/.gitignore
index ddaf6e240..30006f7e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,9 +25,8 @@ conftest
conftest.err
aclocal.m4
Makefile.in
-zebra-[0-9.][0-9.][0-9.]*.tar.gz
-quagga-[0-9.][0-9.][0-9.]*.tar.gz
-quagga-[0-9.][0-9.][0-9.]*.tar.gz.asc
+*.tar.gz
+*.tar.gz.asc
.nfs*
libtool
.arch-inventory
diff --git a/bgpd/bgp_btoa.c b/bgpd/bgp_btoa.c
index cd52c94b1..37bef9b85 100644
--- a/bgpd/bgp_btoa.c
+++ b/bgpd/bgp_btoa.c
@@ -44,9 +44,9 @@ static zebra_capabilities_t _caps_p [] =
struct zebra_privs_t bgpd_privs =
{
-#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
- .user = QUAGGA_USER,
- .group = QUAGGA_GROUP,
+#if defined(FRR_USER) && defined(FRR_GROUP)
+ .user = FRR_USER,
+ .group = FRR_GROUP,
#endif
#ifdef VTY_GROUP
.vty_group = VTY_GROUP,
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index 91eacc932..33191f0a9 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -134,9 +134,9 @@ static zebra_capabilities_t _caps_p [] =
struct zebra_privs_t bgpd_privs =
{
-#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
- .user = QUAGGA_USER,
- .group = QUAGGA_GROUP,
+#if defined(FRR_USER) && defined(FRR_GROUP)
+ .user = FRR_USER,
+ .group = FRR_GROUP,
#endif
#ifdef VTY_GROUP
.vty_group = VTY_GROUP,
@@ -174,7 +174,7 @@ redistribution between different routing protocols.\n\n\
-C, --dryrun Check configuration for validity and exit\n\
-h, --help Display this help and exit\n\
\n\
-Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit (status);
@@ -547,7 +547,7 @@ main (int argc, char **argv)
vty_serv_sock (vty_addr, vty_port, BGP_VTYSH_PATH);
/* Print banner. */
- zlog_notice ("BGPd %s starting: vty@%d, bgp@%s:%d", QUAGGA_VERSION,
+ zlog_notice ("BGPd %s starting: vty@%d, bgp@%s:%d", FRR_COPYRIGHT,
vty_port,
(bm->address ? bm->address : "<all>"),
bm->port);
diff --git a/configure.ac b/configure.ac
index 04478f255..05d0f96d1 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
##
-## Configure template file for Quagga.
+## Configure template file for FreeRangeRouting.
## autoconf will generate configure script.
##
## Copyright (c) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro <kunihiro@zebra.org>
@@ -7,9 +7,9 @@
##
AC_PREREQ(2.60)
-AC_INIT(Quagga, 2.0-rc0, [https://bugzilla.quagga.net])
-PACKAGE_URL="http://www.quagga.net"
-PACKAGE_FULLNAME="Quagga"
+AC_INIT(frr, 2.0-rc0, [https://bugzilla.quagga.net])
+PACKAGE_URL="https://freerangerouting.org/"
+PACKAGE_FULLNAME="FreeRangeRouting"
AC_SUBST(PACKAGE_FULLNAME)
CONFIG_ARGS="$ac_configure_args"
@@ -239,9 +239,9 @@ AC_ARG_ENABLE(ospfclient,
AC_ARG_ENABLE(multipath,
AS_HELP_STRING([--enable-multipath=ARG], [enable multipath function, ARG must be digit]))
AC_ARG_ENABLE(user,
- AS_HELP_STRING([--enable-user=USER], [user to run Quagga suite as (default quagga)]))
+ AS_HELP_STRING([--enable-user=USER], [user to run FRR suite as (default frr)]))
AC_ARG_ENABLE(group,
- AS_HELP_STRING([--enable-group=GROUP], [group to run Quagga suite as (default quagga)]))
+ AS_HELP_STRING([--enable-group=GROUP], [group to run FRR suite as (default frr)]))
AC_ARG_ENABLE(vty_group,
AS_HELP_STRING([--enable-vty-group=ARG], [set vty sockets to have specified group as owner]))
AC_ARG_ENABLE(configfile_mask,
@@ -427,18 +427,18 @@ if test x"${enable_user}" = x"no"; then
enable_user=""
else
if test x"${enable_user}" = x"yes" || test x"${enable_user}" = x""; then
- enable_user="quagga"
+ enable_user="frr"
fi
- AC_DEFINE_UNQUOTED(QUAGGA_USER, "${enable_user}", Quagga User)
+ AC_DEFINE_UNQUOTED(FRR_USER, "${enable_user}", frr User)
fi
if test x"${enable_group}" = x"no"; then
enable_group=""
else
if test x"${enable_group}" = x"yes" || test x"${enable_group}" = x""; then
- enable_group="quagga"
+ enable_group="frr"
fi
- AC_DEFINE_UNQUOTED(QUAGGA_GROUP, "${enable_group}", Quagga Group)
+ AC_DEFINE_UNQUOTED(FRR_GROUP, "${enable_group}", frr Group)
fi
if test x"${enable_vty_group}" = x"yes" ; then
@@ -887,25 +887,25 @@ main()
dnl ------------------------------
dnl check kernel route read method
dnl ------------------------------
-AC_CACHE_CHECK([route read method], [quagga_cv_rtread_method],
+AC_CACHE_CHECK([route read method], [frr_cv_rtread_method],
[if test "x$netlink" = xyes; then
- quagga_cv_rtread_method="netlink"
+ frr_cv_rtread_method="netlink"
else
-for quagga_cv_rtread_method in /dev/ip /dev/null;
+for frr_cv_rtread_method in /dev/ip /dev/null;
do
- test x`ls $quagga_cv_rtread_method 2>/dev/null` = x"$quagga_cv_rtread_method" && break
+ test x`ls $frr_cv_rtread_method 2>/dev/null` = x"$frr_cv_rtread_method" && break
done
-case $quagga_cv_rtread_method in
+case $frr_cv_rtread_method in
"/dev/ip")
case "$host" in
- *-freebsd*) quagga_cv_rtread_method="sysctl";;
- *) quagga_cv_rtread_method="getmsg";;
+ *-freebsd*) frr_cv_rtread_method="sysctl";;
+ *) frr_cv_rtread_method="getmsg";;
esac;;
*)
- quagga_cv_rtread_method="sysctl";;
+ frr_cv_rtread_method="sysctl";;
esac
fi])
-RTREAD_METHOD=rtread_${quagga_cv_rtread_method}.o
+RTREAD_METHOD=rtread_${frr_cv_rtread_method}.o
AC_SUBST(RTREAD_METHOD)
dnl -----------------------------
@@ -1035,29 +1035,29 @@ fi
dnl -----------------------------
dnl check ipforward detect method
dnl -----------------------------
-AC_CACHE_CHECK([ipforward method], [quagga_cv_ipforward_method],
+AC_CACHE_CHECK([ipforward method], [frr_cv_ipforward_method],
[if test x$cross_compiling = xyes; then
if test x"$opsys" = x"gnu-linux"; then
- quagga_cv_ipforward_method=/proc/net/snmp
+ frr_cv_ipforward_method=/proc/net/snmp
else
- quagga_cv_ipforward_method=/dev/ip
+ frr_cv_ipforward_method=/dev/ip
fi
else
- for quagga_cv_ipforward_method in /proc/net/snmp /dev/ip /dev/null;
+ for frr_cv_ipforward_method in /proc/net/snmp /dev/ip /dev/null;
do
- test x`ls $quagga_cv_ipforward_method 2>/dev/null` = x"$quagga_cv_ipforward_method" && break
+ test x`ls $frr_cv_ipforward_method 2>/dev/null` = x"$frr_cv_ipforward_method" && break
done
fi
-case $quagga_cv_ipforward_method in
- "/proc/net/snmp") quagga_cv_ipforward_method="proc";;
+case $frr_cv_ipforward_method in
+ "/proc/net/snmp") frr_cv_ipforward_method="proc";;
"/dev/ip")
case "$host" in
- *-freebsd*) quagga_cv_ipforward_method="sysctl";;
- *) quagga_cv_ipforward_method="solaris";;
+ *-freebsd*) frr_cv_ipforward_method="sysctl";;
+ *) frr_cv_ipforward_method="solaris";;
esac;;
- *) quagga_cv_ipforward_method="sysctl";;
+ *) frr_cv_ipforward_method="sysctl";;
esac])
-IPFORWARD=ipforward_${quagga_cv_ipforward_method}.o
+IPFORWARD=ipforward_${frr_cv_ipforward_method}.o
AC_SUBST(IPFORWARD)
dnl ----------------------------------------------------------------------------
@@ -1513,14 +1513,14 @@ dnl set paths for state directory
dnl ------------------------------
AC_MSG_CHECKING(directory to use for state file)
if test "${prefix}" = "NONE"; then
- quagga_statedir_prefix="";
+ frr_statedir_prefix="";
else
- quagga_statedir_prefix=${prefix}
+ frr_statedir_prefix=${prefix}
fi
if test "${localstatedir}" = '${prefix}/var'; then
- for QUAGGA_STATE_DIR in ${quagga_statedir_prefix}/var/run dnl
- ${quagga_statedir_prefix}/var/adm dnl
- ${quagga_statedir_prefix}/etc dnl
+ for QUAGGA_STATE_DIR in ${frr_statedir_prefix}/var/run dnl
+ ${frr_statedir_prefix}/var/adm dnl
+ ${frr_statedir_prefix}/etc dnl
/var/run dnl
/var/adm dnl
/etc dnl
@@ -1528,39 +1528,39 @@ if test "${localstatedir}" = '${prefix}/var'; then
do
test -d $QUAGGA_STATE_DIR && break
done
- quagga_statedir=$QUAGGA_STATE_DIR
+ frr_statedir=$QUAGGA_STATE_DIR
else
- quagga_statedir=${localstatedir}
+ frr_statedir=${localstatedir}
fi
-if test $quagga_statedir = "/dev/null"; then
+if test $frr_statedir = "/dev/null"; then
AC_MSG_ERROR('STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!')
fi
-AC_MSG_RESULT(${quagga_statedir})
-AC_SUBST(quagga_statedir)
-
-AC_DEFINE_UNQUOTED(PATH_ZEBRA_PID, "$quagga_statedir/zebra.pid",zebra PID)
-AC_DEFINE_UNQUOTED(PATH_RIPD_PID, "$quagga_statedir/ripd.pid",ripd PID)
-AC_DEFINE_UNQUOTED(PATH_RIPNGD_PID, "$quagga_statedir/ripngd.pid",ripngd PID)
-AC_DEFINE_UNQUOTED(PATH_BGPD_PID, "$quagga_statedir/bgpd.pid",bgpd PID)
-AC_DEFINE_UNQUOTED(PATH_OSPFD_PID, "$quagga_statedir/ospfd.pid",ospfd PID)
-AC_DEFINE_UNQUOTED(PATH_OSPF6D_PID, "$quagga_statedir/ospf6d.pid",ospf6d PID)
-AC_DEFINE_UNQUOTED(PATH_LDPD_PID, "$quagga_statedir/ldpd.pid",ldpd PID)
-AC_DEFINE_UNQUOTED(LDPD_SOCKET, "$quagga_statedir/ldpd.sock",ldpd control socket)
-AC_DEFINE_UNQUOTED(PATH_ISISD_PID, "$quagga_statedir/isisd.pid",isisd PID)
-AC_DEFINE_UNQUOTED(PATH_PIMD_PID, "$quagga_statedir/pimd.pid",pimd PID)
-AC_DEFINE_UNQUOTED(PATH_WATCHQUAGGA_PID, "$quagga_statedir/watchquagga.pid",watchquagga PID)
-AC_DEFINE_UNQUOTED(ZEBRA_SERV_PATH, "$quagga_statedir/zserv.api",zebra api socket)
-AC_DEFINE_UNQUOTED(ZEBRA_VTYSH_PATH, "$quagga_statedir/zebra.vty",zebra vty socket)
-AC_DEFINE_UNQUOTED(RIP_VTYSH_PATH, "$quagga_statedir/ripd.vty",rip vty socket)
-AC_DEFINE_UNQUOTED(RIPNG_VTYSH_PATH, "$quagga_statedir/ripngd.vty",ripng vty socket)
-AC_DEFINE_UNQUOTED(BGP_VTYSH_PATH, "$quagga_statedir/bgpd.vty",bgpd vty socket)
-AC_DEFINE_UNQUOTED(OSPF_VTYSH_PATH, "$quagga_statedir/ospfd.vty",ospfd vty socket)
-AC_DEFINE_UNQUOTED(OSPF6_VTYSH_PATH, "$quagga_statedir/ospf6d.vty",ospf6d vty socket)
-AC_DEFINE_UNQUOTED(LDP_VTYSH_PATH, "$quagga_statedir/ldpd.vty",ldpd vty socket)
-AC_DEFINE_UNQUOTED(ISIS_VTYSH_PATH, "$quagga_statedir/isisd.vty",isisd vty socket)
-AC_DEFINE_UNQUOTED(PIM_VTYSH_PATH, "$quagga_statedir/pimd.vty",pimd vty socket)
-AC_DEFINE_UNQUOTED(WATCHQUAGGA_VTYSH_PATH, "$quagga_statedir/watchquagga.vty",watchquagga vty socket)
-AC_DEFINE_UNQUOTED(DAEMON_VTY_DIR, "$quagga_statedir",daemon vty directory)
+AC_MSG_RESULT(${frr_statedir})
+AC_SUBST(frr_statedir)
+
+AC_DEFINE_UNQUOTED(PATH_ZEBRA_PID, "$frr_statedir/zebra.pid",zebra PID)
+AC_DEFINE_UNQUOTED(PATH_RIPD_PID, "$frr_statedir/ripd.pid",ripd PID)
+AC_DEFINE_UNQUOTED(PATH_RIPNGD_PID, "$frr_statedir/ripngd.pid",ripngd PID)
+AC_DEFINE_UNQUOTED(PATH_BGPD_PID, "$frr_statedir/bgpd.pid",bgpd PID)
+AC_DEFINE_UNQUOTED(PATH_OSPFD_PID, "$frr_statedir/ospfd.pid",ospfd PID)
+AC_DEFINE_UNQUOTED(PATH_OSPF6D_PID, "$frr_statedir/ospf6d.pid",ospf6d PID)
+AC_DEFINE_UNQUOTED(PATH_LDPD_PID, "$frr_statedir/ldpd.pid",ldpd PID)
+AC_DEFINE_UNQUOTED(LDPD_SOCKET, "$frr_statedir/ldpd.sock",ldpd control socket)
+AC_DEFINE_UNQUOTED(PATH_ISISD_PID, "$frr_statedir/isisd.pid",isisd PID)
+AC_DEFINE_UNQUOTED(PATH_PIMD_PID, "$frr_statedir/pimd.pid",pimd PID)
+AC_DEFINE_UNQUOTED(PATH_WATCHQUAGGA_PID, "$frr_statedir/watchquagga.pid",watchquagga PID)
+AC_DEFINE_UNQUOTED(ZEBRA_SERV_PATH, "$frr_statedir/zserv.api",zebra api socket)
+AC_DEFINE_UNQUOTED(ZEBRA_VTYSH_PATH, "$frr_statedir/zebra.vty",zebra vty socket)
+AC_DEFINE_UNQUOTED(RIP_VTYSH_PATH, "$frr_statedir/ripd.vty",rip vty socket)
+AC_DEFINE_UNQUOTED(RIPNG_VTYSH_PATH, "$frr_statedir/ripngd.vty",ripng vty socket)
+AC_DEFINE_UNQUOTED(BGP_VTYSH_PATH, "$frr_statedir/bgpd.vty",bgpd vty socket)
+AC_DEFINE_UNQUOTED(OSPF_VTYSH_PATH, "$frr_statedir/ospfd.vty",ospfd vty socket)
+AC_DEFINE_UNQUOTED(OSPF6_VTYSH_PATH, "$frr_statedir/ospf6d.vty",ospf6d vty socket)
+AC_DEFINE_UNQUOTED(LDP_VTYSH_PATH, "$frr_statedir/ldpd.vty",ldpd vty socket)
+AC_DEFINE_UNQUOTED(ISIS_VTYSH_PATH, "$frr_statedir/isisd.vty",isisd vty socket)
+AC_DEFINE_UNQUOTED(PIM_VTYSH_PATH, "$frr_statedir/pimd.vty",pimd vty socket)
+AC_DEFINE_UNQUOTED(WATCHQUAGGA_VTYSH_PATH, "$frr_statedir/watchquagga.vty",watchquagga vty socket)
+AC_DEFINE_UNQUOTED(DAEMON_VTY_DIR, "$frr_statedir",daemon vty directory)
dnl autoconf does this, but it does it too late...
test "x$prefix" = xNONE && prefix=$ac_default_prefix
@@ -1652,21 +1652,21 @@ AC_CONFIG_FILES([vtysh/extract.pl],[chmod +x vtysh/extract.pl])
AC_OUTPUT
echo "
-Quagga configuration
---------------------
-quagga version : ${PACKAGE_VERSION}
+FreeRangeRouting configuration
+------------------------------
+FRR version : ${PACKAGE_VERSION}
host operating system : ${host_os}
source code location : ${srcdir}
compiler : ${CC}
compiler flags : ${CFLAGS}
make : ${MAKE-make}
linker flags : ${LDFLAGS} ${LIBS} ${LIBCAP} ${LIBREADLINE} ${LIBM}
-state file directory : ${quagga_statedir}
+state file directory : ${frr_statedir}
config file directory : `eval echo \`echo ${sysconfdir}\``
example directory : `eval echo \`echo ${exampledir}\``
-user to run as : ${enable_user}
-group to run as : ${enable_group}
-group for vty sockets : ${enable_vty_group}
+user to run as : ${enable_user}
+group to run as : ${enable_group}
+group for vty sockets : ${enable_vty_group}
config file mask : ${enable_configfile_mask}
log file mask : ${enable_logfile_mask}
zebra protobuf enabled : ${have_protobuf:-no}
diff --git a/isisd/isis_main.c b/isisd/isis_main.c
index 84ebf8cea..f34be99ec 100644
--- a/isisd/isis_main.c
+++ b/isisd/isis_main.c
@@ -66,11 +66,11 @@ zebra_capabilities_t _caps_p[] = {
};
struct zebra_privs_t isisd_privs = {
-#if defined(QUAGGA_USER)
- .user = QUAGGA_USER,
+#if defined(FRR_USER)
+ .user = FRR_USER,
#endif
-#if defined QUAGGA_GROUP
- .group = QUAGGA_GROUP,
+#if defined FRR_GROUP
+ .group = FRR_GROUP,
#endif
#ifdef VTY_GROUP
.vty_group = VTY_GROUP,
@@ -150,7 +150,7 @@ Daemon which manages IS-IS routing\n\n\
-C, --dryrun Check configuration for validity and exit\n\
-h, --help Display this help and exit\n\
\n\
-Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit (status);
@@ -382,7 +382,7 @@ main (int argc, char **argv, char **envp)
vty_serv_sock (vty_addr, vty_port, ISIS_VTYSH_PATH);
/* Print banner. */
- zlog_notice ("Quagga-ISISd %s starting: vty@%d", QUAGGA_VERSION, vty_port);
+ zlog_notice ("Quagga-ISISd %s starting: vty@%d", FRR_VERSION, vty_port);
/* Start finite state machine. */
while (thread_fetch (master, &thread))
diff --git a/ldpd/lde.c b/ldpd/lde.c
index 904d0f8d9..29c959090 100644
--- a/ldpd/lde.c
+++ b/ldpd/lde.c
@@ -69,9 +69,9 @@ static zebra_capabilities_t _caps_p [] =
static struct zebra_privs_t lde_privs =
{
-#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
- .user = QUAGGA_USER,
- .group = QUAGGA_GROUP,
+#if defined(FRR_USER) && defined(FRR_GROUP)
+ .user = FRR_USER,
+ .group = FRR_GROUP,
#endif
#if defined(VTY_GROUP)
.vty_group = VTY_GROUP,
diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c
index aa1dc57a7..8a9847bdf 100644
--- a/ldpd/ldpd.c
+++ b/ldpd/ldpd.c
@@ -103,9 +103,9 @@ static zebra_capabilities_t _caps_p [] =
struct zebra_privs_t ldpd_privs =
{
-#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
- .user = QUAGGA_USER,
- .group = QUAGGA_GROUP,
+#if defined(FRR_USER) && defined(FRR_GROUP)
+ .user = FRR_USER,
+ .group = FRR_GROUP,
#endif
#if defined(VTY_GROUP)
.vty_group = VTY_GROUP,
@@ -154,7 +154,7 @@ Daemon which manages LDP.\n\n\
-C, --dryrun Check configuration for validity and exit\n\
-h, --help Display this help and exit\n\
\n\
-Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit(status);
@@ -413,7 +413,7 @@ main(int argc, char *argv[])
vty_serv_sock(vty_addr, vty_port, LDP_VTYSH_PATH);
/* Print banner. */
- log_notice("LDPd %s starting: vty@%d", QUAGGA_VERSION, vty_port);
+ log_notice("LDPd %s starting: vty@%d", FRR_VERSION, vty_port);
/* Fetch next active thread. */
while (thread_fetch(master, &thread))
diff --git a/ldpd/ldpe.c b/ldpd/ldpe.c
index aef33c8e3..37a3d79a2 100644
--- a/ldpd/ldpe.c
+++ b/ldpd/ldpe.c
@@ -66,9 +66,9 @@ static zebra_capabilities_t _caps_p [] =
struct zebra_privs_t ldpe_privs =
{
-#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
- .user = QUAGGA_USER,
- .group = QUAGGA_GROUP,
+#if defined(FRR_USER) && defined(FRR_GROUP)
+ .user = FRR_USER,
+ .group = FRR_GROUP,
#endif
#if defined(VTY_GROUP)
.vty_group = VTY_GROUP,
diff --git a/lib/command.c b/lib/command.c
index 0b0614b80..399252777 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -117,12 +117,7 @@ static struct cmd_node config_node =
};
/* Default motd string. */
-static const char *default_motd =
-"\r\n\
-Hello, this is " QUAGGA_PROGNAME " (version " QUAGGA_VERSION ").\r\n\
-" QUAGGA_COPYRIGHT "\r\n\
-" GIT_INFO "\r\n";
-
+static const char *default_motd = FRR_DEFAULT_MOTD;
static const struct facility_map {
int facility;
@@ -191,9 +186,9 @@ level_match(const char *s)
void
print_version (const char *progname)
{
- printf ("%s version %s\n", progname, QUAGGA_VERSION);
- printf ("%s\n", QUAGGA_COPYRIGHT);
- printf ("configured with:\n\t%s\n", QUAGGA_CONFIG_ARGS);
+ printf ("%s version %s\n", progname, FRR_VERSION);
+ printf ("%s\n", FRR_COPYRIGHT);
+ printf ("configured with:\n\t%s\n", FRR_CONFIG_ARGS);
}
@@ -3077,11 +3072,12 @@ DEFUN (show_version,
SHOW_STR
"Displays zebra version\n")
{
- vty_out (vty, "Quagga %s (%s).%s", QUAGGA_VERSION, host.name?host.name:"",
+ vty_out (vty, "%s %s (%s).%s", FRR_FULL_NAME, FRR_VERSION,
+ host.name ? host.name : "",
VTY_NEWLINE);
- vty_out (vty, "%s%s%s", QUAGGA_COPYRIGHT, GIT_INFO, VTY_NEWLINE);
+ vty_out (vty, "%s%s%s", FRR_COPYRIGHT, GIT_INFO, VTY_NEWLINE);
vty_out (vty, "configured with:%s %s%s", VTY_NEWLINE,
- QUAGGA_CONFIG_ARGS, VTY_NEWLINE);
+ FRR_CONFIG_ARGS, VTY_NEWLINE);
return CMD_SUCCESS;
}
diff --git a/lib/smux.c b/lib/smux.c
index 5012e8d95..a9c99e154 100644
--- a/lib/smux.c
+++ b/lib/smux.c
@@ -922,7 +922,7 @@ smux_open (int sock)
u_char *ptr;
size_t len;
long version;
- const char progname[] = QUAGGA_PROGNAME "-" QUAGGA_VERSION;
+ const char progname[] = FRR_SMUX_NAME "-" FRR_VERSION;
if (debug_smux)
{
diff --git a/lib/version.h.in b/lib/version.h.in
index 1f95f0c5f..c41d44e0a 100644
--- a/lib/version.h.in
+++ b/lib/version.h.in
@@ -35,17 +35,20 @@
#define GIT_INFO ""
#endif
-#define QUAGGA_PROGNAME "@PACKAGE_NAME@"
-
-#define QUAGGA_VERSION "@PACKAGE_VERSION@" GIT_SUFFIX
-
-#define ZEBRA_BUG_ADDRESS "@PACKAGE_BUGREPORT@"
-
-#define QUAGGA_URL "http://www.quagga.net"
-
-#define QUAGGA_COPYRIGHT "Copyright 1996-2005 Kunihiro Ishiguro, et al."
-
-#define QUAGGA_CONFIG_ARGS "@CONFIG_ARGS@"
+#define FRR_PAM_NAME "@PACKAGE_NAME@"
+#define FRR_SMUX_NAME "@PACKAGE_NAME@"
+
+#define FRR_FULL_NAME "FreeRangeRouting"
+#define FRR_VERSION "@PACKAGE_VERSION@" GIT_SUFFIX
+#define FRR_BUG_ADDRESS "@PACKAGE_BUGREPORT@"
+#define FRR_COPYRIGHT "Copyright 1996-2005 Kunihiro Ishiguro, et al."
+#define FRR_CONFIG_ARGS "@CONFIG_ARGS@"
+
+#define FRR_DEFAULT_MOTD \
+ "\r\n" \
+ "Hello, this is " FRR_FULL_NAME " (version " FRR_VERSION ").\r\n" \
+ FRR_COPYRIGHT "\r\n" \
+ GIT_INFO "\r\n"
pid_t pid_output (const char *);
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c
index 11a77059b..bd3a2faa5 100644
--- a/ospf6d/ospf6_main.c
+++ b/ospf6d/ospf6_main.c
@@ -63,11 +63,11 @@ zebra_capabilities_t _caps_p [] =
struct zebra_privs_t ospf6d_privs =
{
-#if defined(QUAGGA_USER)
- .user = QUAGGA_USER,
+#if defined(FRR_USER)
+ .user = FRR_USER,
#endif
-#if defined QUAGGA_GROUP
- .group = QUAGGA_GROUP,
+#if defined FRR_GROUP
+ .group = FRR_GROUP,
#endif
#ifdef VTY_GROUP
.vty_group = VTY_GROUP,
@@ -131,7 +131,7 @@ Daemon which manages OSPF version 3.\n\n\
-C, --dryrun Check configuration for validity and exit\n\
-h, --help Display this help and exit\n\
\n\
-Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit (status);
@@ -361,7 +361,7 @@ main (int argc, char *argv[], char *envp[])
/* Print start message */
zlog_notice ("OSPF6d (Quagga-%s ospf6d-%s) starts: vty@%d",
- QUAGGA_VERSION, OSPF6_DAEMON_VERSION,vty_port);
+ FRR_VERSION, OSPF6_DAEMON_VERSION,vty_port);
/* Start finite state machine, here we go! */
while (thread_fetch (master, &thread))
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 43aa683fa..5309af5bf 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -63,9 +63,9 @@ zebra_capabilities_t _caps_p [] =
struct zebra_privs_t ospfd_privs =
{
-#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
- .user = QUAGGA_USER,
- .group = QUAGGA_GROUP,
+#if defined(FRR_USER) && defined(FRR_GROUP)
+ .user = FRR_USER,
+ .group = FRR_GROUP,
#endif
#if defined(VTY_GROUP)
.vty_group = VTY_GROUP,
@@ -133,7 +133,7 @@ Daemon which manages OSPF.\n\n\
-C, --dryrun Check configuration for validity and exit\n\
-h, --help Display this help and exit\n\
\n\
-Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit (status);
}
@@ -373,7 +373,7 @@ main (int argc, char **argv)
vty_serv_sock (vty_addr, vty_port, vty_path);
/* Print banner. */
- zlog_notice ("OSPFd %s starting: vty@%d, %s", QUAGGA_VERSION, vty_port, vty_path);
+ zlog_notice ("OSPFd %s starting: vty@%d, %s", FRR_VERSION, vty_port, vty_path);
/* Fetch next active thread. */
while (thread_fetch (master, &thread))
diff --git a/pimd/pim_main.c b/pimd/pim_main.c
index 847696466..29432ea23 100644
--- a/pimd/pim_main.c
+++ b/pimd/pim_main.c
@@ -75,9 +75,9 @@ zebra_capabilities_t _caps_p [] =
/* pimd privileges to run with */
struct zebra_privs_t pimd_privs =
{
-#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
- .user = QUAGGA_USER,
- .group = QUAGGA_GROUP,
+#if defined(FRR_USER) && defined(FRR_GROUP)
+ .user = FRR_USER,
+ .group = FRR_GROUP,
#endif
#ifdef VTY_GROUP
.vty_group = VTY_GROUP,
@@ -174,7 +174,7 @@ int main(int argc, char** argv, char** envp) {
break;
case 'v':
printf(PIMD_PROGNAME " version %s\n", PIMD_VERSION);
- print_version(QUAGGA_PROGNAME);
+ print_version(progname);
exit (0);
break;
#ifdef PIM_ZCLIENT_DEBUG
@@ -194,7 +194,7 @@ int main(int argc, char** argv, char** envp) {
master = thread_master_create();
zlog_notice("Quagga %s " PIMD_PROGNAME " %s starting",
- QUAGGA_VERSION, PIMD_VERSION);
+ FRR_VERSION, PIMD_VERSION);
/*
* Initializations
@@ -241,7 +241,7 @@ int main(int argc, char** argv, char** envp) {
vty_serv_sock(vty_addr, vty_port, PIM_VTYSH_PATH);
zlog_notice("Quagga %s " PIMD_PROGNAME " %s starting, VTY interface at port TCP %d",
- QUAGGA_VERSION, PIMD_VERSION, vty_port);
+ FRR_VERSION, PIMD_VERSION, vty_port);
#ifdef PIM_DEBUG_BYDEFAULT
zlog_notice("PIM_DEBUG_BYDEFAULT: Enabling all debug commands");
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index 796647c3e..cfcb60168 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -65,11 +65,11 @@ zebra_capabilities_t _caps_p [] =
struct zebra_privs_t ripd_privs =
{
-#if defined(QUAGGA_USER)
- .user = QUAGGA_USER,
+#if defined(FRR_USER)
+ .user = FRR_USER,
#endif
-#if defined QUAGGA_GROUP
- .group = QUAGGA_GROUP,
+#if defined FRR_GROUP
+ .group = FRR_GROUP,
#endif
#ifdef VTY_GROUP
.vty_group = VTY_GROUP,
@@ -123,7 +123,7 @@ Daemon which manages RIP version 1 and 2.\n\n\
-v, --version Print program version\n\
-h, --help Display this help and exit\n\
\n\
-Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit (status);
@@ -314,7 +314,7 @@ main (int argc, char **argv)
vty_serv_sock (vty_addr, vty_port, RIP_VTYSH_PATH);
/* Print banner. */
- zlog_notice ("RIPd %s starting: vty@%d", QUAGGA_VERSION, vty_port);
+ zlog_notice ("RIPd %s starting: vty@%d", FRR_VERSION, vty_port);
/* Execute each thread. */
while (thread_fetch (master, &thread))
diff --git a/ripngd/ripng_main.c b/ripngd/ripng_main.c
index e7ecbf969..14711a1a6 100644
--- a/ripngd/ripng_main.c
+++ b/ripngd/ripng_main.c
@@ -70,11 +70,11 @@ zebra_capabilities_t _caps_p [] =
struct zebra_privs_t ripngd_privs =
{
-#if defined(QUAGGA_USER)
- .user = QUAGGA_USER,
+#if defined(FRR_USER)
+ .user = FRR_USER,
#endif
-#if defined QUAGGA_GROUP
- .group = QUAGGA_GROUP,
+#if defined FRR_GROUP
+ .group = FRR_GROUP,
#endif
#ifdef VTY_GROUP
.vty_group = VTY_GROUP,
@@ -125,7 +125,7 @@ Daemon which manages RIPng.\n\n\
-C, --dryrun Check configuration for validity and exit\n\
-h, --help Display this help and exit\n\
\n\
-Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit (status);
}
@@ -309,7 +309,7 @@ main (int argc, char **argv)
pid_output (pid_file);
/* Print banner. */
- zlog_notice ("RIPNGd %s starting: vty@%d", QUAGGA_VERSION, vty_port);
+ zlog_notice ("RIPNGd %s starting: vty@%d", FRR_VERSION, vty_port);
/* Fetch next active thread. */
while (thread_fetch (master, &thread))
diff --git a/tests/main.c b/tests/main.c
index 885b8a292..b3e6e706f 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -92,7 +92,7 @@ Daemon which does 'slow' things.\n\n\
-v, --version Print program version\n\
-h, --help Display this help and exit\n\
\n\
-Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit (status);
}
diff --git a/tests/test-privs.c b/tests/test-privs.c
index e0118a881..c6ccc28e7 100644
--- a/tests/test-privs.c
+++ b/tests/test-privs.c
@@ -37,9 +37,9 @@ zebra_capabilities_t _caps_p [] =
struct zebra_privs_t test_privs =
{
-#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
- .user = QUAGGA_USER,
- .group = QUAGGA_GROUP,
+#if defined(FRR_USER) && defined(FRR_GROUP)
+ .user = FRR_USER,
+ .group = FRR_GROUP,
#endif
#if defined(VTY_GROUP)
.vty_group = VTY_GROUP,
@@ -71,7 +71,7 @@ Daemon which does 'slow' things.\n\n\
-g, --group Group to run as\n\
-h, --help Display this help and exit\n\
\n\
-Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit (status);
}
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index a90915e1a..82d0f437d 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -2509,21 +2509,21 @@ vtysh_write_config_integrated(void)
err++;
}
- pwentry = getpwnam (QUAGGA_USER);
+ pwentry = getpwnam (FRR_USER);
if (pwentry)
uid = pwentry->pw_uid;
else
{
- printf ("%% Warning: could not look up user \"%s\"\n", QUAGGA_USER);
+ printf ("%% Warning: could not look up user \"%s\"\n", FRR_USER);
err++;
}
- grentry = getgrnam (QUAGGA_GROUP);
+ grentry = getgrnam (FRR_GROUP);
if (grentry)
gid = grentry->gr_gid;
else
{
- printf ("%% Warning: could not look up group \"%s\"\n", QUAGGA_GROUP);
+ printf ("%% Warning: could not look up group \"%s\"\n", FRR_GROUP);
err++;
}
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index 999d90ab2..6b33fca39 100644
--- a/vtysh/vtysh_main.c
+++ b/vtysh/vtysh_main.c
@@ -150,7 +150,7 @@ usage (int status)
"Note that multiple commands may be executed from the command\n" \
"line by passing multiple -c args, or by embedding linefeed\n" \
"characters in one or more of the commands.\n\n" \
- "Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+ "Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
exit (status);
}
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
index da2ed1569..3a64ae0a9 100644
--- a/vtysh/vtysh_user.c
+++ b/vtysh/vtysh_user.c
@@ -67,7 +67,7 @@ vtysh_pam (const char *user)
pam_handle_t *pamh = NULL;
/* Start PAM. */
- ret = pam_start(QUAGGA_PROGNAME, user, &conv, &pamh);
+ ret = pam_start(FRR_PAM_NAME, user, &conv, &pamh);
/* printf ("ret %d\n", ret); */
/* Is user really user? */
diff --git a/watchquagga/watchquagga.c b/watchquagga/watchquagga.c
index 16b398030..98e912956 100644
--- a/watchquagga/watchquagga.c
+++ b/watchquagga/watchquagga.c
@@ -1266,7 +1266,7 @@ main(int argc, char **argv)
gs.unresponsive_restart = 1;
break;
case 'v':
- printf ("%s version %s\n", progname, QUAGGA_VERSION);
+ printf ("%s version %s\n", progname, FRR_VERSION);
puts("Copyright 2004 Andrew J. Schorr");
return 0;
case 'h':
@@ -1422,7 +1422,7 @@ main(int argc, char **argv)
p += strlen(p);
}
zlog_notice("%s %s watching [%s], mode [%s]",
- progname, QUAGGA_VERSION, buf, mode_str[gs.mode]);
+ progname, FRR_VERSION, buf, mode_str[gs.mode]);
}
}
diff --git a/zebra/main.c b/zebra/main.c
index 4fea0104f..9abc8f87f 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -111,9 +111,9 @@ zebra_capabilities_t _caps_p [] =
/* zebra privileges to run with */
struct zebra_privs_t zserv_privs =
{
-#if defined(QUAGGA_USER) && defined(QUAGGA_GROUP)
- .user = QUAGGA_USER,
- .group = QUAGGA_GROUP,
+#if defined(FRR_USER) && defined(FRR_GROUP)
+ .user = FRR_USER,
+ .group = FRR_GROUP,
#endif
#ifdef VTY_GROUP
.vty_group = VTY_GROUP,
@@ -162,7 +162,7 @@ usage (char *progname, int status)
printf ("-v, --version Print program version\n"\
"-h, --help Display this help and exit\n"\
"\n"\
- "Report bugs to %s\n", ZEBRA_BUG_ADDRESS);
+ "Report bugs to %s\n", FRR_BUG_ADDRESS);
}
exit (status);
@@ -466,7 +466,7 @@ main (int argc, char **argv)
vty_serv_sock (vty_addr, vty_port, ZEBRA_VTYSH_PATH);
/* Print banner. */
- zlog_notice ("Zebra %s starting: vty@%d", QUAGGA_VERSION, vty_port);
+ zlog_notice ("Zebra %s starting: vty@%d", FRR_VERSION, vty_port);
while (thread_fetch (zebrad.master, &thread))
thread_call (&thread);
diff --git a/zebra/test_main.c b/zebra/test_main.c
index 828b61af9..76ce92c37 100644
--- a/zebra/test_main.c
+++ b/zebra/test_main.c
@@ -108,7 +108,7 @@ usage (char *progname, int status)
"-v, --version Print program version\n"\
"-h, --help Display this help and exit\n"\
"\n"\
- "Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS);
+ "Report bugs to %s\n", progname, FRR_BUG_ADDRESS);
}
exit (status);
@@ -332,7 +332,7 @@ main (int argc, char **argv)
vty_serv_sock (vty_addr, vty_port, "/tmp/test_zebra");
/* Print banner. */
- zlog_notice ("Zebra %s starting: vty@%d", QUAGGA_VERSION, vty_port);
+ zlog_notice ("Zebra %s starting: vty@%d", FRR_VERSION, vty_port);
while (thread_fetch (zebrad.master, &thread))
thread_call (&thread);