summaryrefslogtreecommitdiff
path: root/lib/smux.h
diff options
context:
space:
mode:
authorKaren Schoener <karen@voltanet.io>2021-02-05 16:05:36 -0500
committerKaren Schoener <karen@voltanet.io>2021-02-16 11:53:42 -0500
commitec48460efdb0d8f4b184a13d7836826f5f82767a (patch)
tree053639e48ca08f515809c9619126010bfbea2c41 /lib/smux.h
parent658186e8b6ad84bd92fa46201901cf75bf3174c2 (diff)
lib: add agentx_enabled hook
Adding agentx_enabled hook. This permits the main LDP process to signal the lde and ldpe processes when agentx is enabled. Signed-off-by: Karen Schoener <karen@voltanet.io>
Diffstat (limited to 'lib/smux.h')
-rw-r--r--lib/smux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/smux.h b/lib/smux.h
index 6896f02354..1f79d41ef8 100644
--- a/lib/smux.h
+++ b/lib/smux.h
@@ -25,6 +25,7 @@
#include <net-snmp/agent/snmp_vars.h>
#include "thread.h"
+#include "hook.h"
#ifdef __cplusplus
extern "C" {
@@ -70,6 +71,7 @@ struct trap_object {
(uint8_t *)&snmp_in_addr_val)
extern void smux_init(struct thread_master *tm);
+extern void smux_agentx_enable(void);
extern void smux_register_mib(const char *, struct variable *, size_t, int,
oid[], size_t);
extern int smux_header_generic(struct variable *, oid[], size_t *, int,
@@ -107,6 +109,8 @@ extern void oid2in_addr(oid[], int, struct in_addr *);
extern void *oid_copy(void *, const void *, size_t);
extern void oid_copy_addr(oid[], const struct in_addr *, int);
+DECLARE_HOOK(agentx_enabled, (), ())
+
#ifdef __cplusplus
}
#endif