summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
Diffstat (limited to 'zebra')
-rw-r--r--zebra/zebra_snmp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/zebra/zebra_snmp.c b/zebra/zebra_snmp.c
index 051aaaa7..5095095c 100644
--- a/zebra/zebra_snmp.c
+++ b/zebra/zebra_snmp.c
@@ -37,6 +37,7 @@
#include "table.h"
#include "zebra/rib.h"
+#include "zebra/zserv.h"
#define IPFWMIB 1,3,6,1,2,1,4,24
#define ZEBRAOID 1,3,6,1,4,1,3317,1,2,1
@@ -83,6 +84,8 @@
#define IPADDRESS ASN_IPADDRESS
#define OBJECTIDENTIFIER ASN_OBJECT_ID
+extern struct zebra_t zebrad;
+
oid ipfw_oid [] = { IPFWMIB };
oid zebra_oid [] = { ZEBRAOID };
@@ -561,7 +564,7 @@ ipCidrTable (struct variable *v, oid objid[], size_t *objid_len,
void
zebra_snmp_init ()
{
- smux_init (zebra_oid, sizeof (zebra_oid) / sizeof (oid));
+ smux_init (zebrad.master, zebra_oid, sizeof (zebra_oid) / sizeof (oid));
REGISTER_MIB("mibII/ipforward", zebra_variables, variable, ipfw_oid);
smux_start ();
}