diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-12-20 18:10:30 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-20 18:18:44 +0100 |
| commit | ae435b1972ab95b647e816da6a2dbb9951628218 (patch) | |
| tree | 157435d20e9a8170d1477c5db58cd1f90f1b5f1c /lib/agentx.c | |
| parent | 3bd82ffb70f1a18d2a2cddeb91101c183176a0fa (diff) | |
build: replace some hardcoding with ./configure
Several places have paths and names that can change hardcoded, e.g. the
package name and the /var/run path. This fixes a few of them, there's
still some to do.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/agentx.c')
| -rw-r--r-- | lib/agentx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/agentx.c b/lib/agentx.c index 5996b34a0f..4175e7ba92 100644 --- a/lib/agentx.c +++ b/lib/agentx.c @@ -31,6 +31,7 @@ #include "smux.h" #include "memory.h" #include "linklist.h" +#include "version.h" static int agentx_enabled = 0; @@ -175,7 +176,7 @@ DEFUN (agentx_enable, { if (!agentx_enabled) { - init_snmp("quagga"); + init_snmp(FRR_SMUX_NAME); events = list_new(); agentx_events_update (); agentx_enabled = 1; @@ -209,7 +210,7 @@ smux_init (struct thread_master *tm) SNMP_CALLBACK_LOGGING, agentx_log_callback, NULL); - init_agent ("quagga"); + init_agent (FRR_SMUX_NAME); install_node (&agentx_node, config_write_agentx); install_element (CONFIG_NODE, &agentx_enable_cmd); |
