diff options
author | paul <paul> | 2003-06-19 01:21:07 +0000 |
---|---|---|
committer | paul <paul> | 2003-06-19 01:21:07 +0000 |
commit | 3ad9f528fc4ee984d7990c6d6b2c549fe8b92620 (patch) | |
tree | 4ded678eccb245b3de0ffebc45095be605b35ed2 /zebra/zebra_snmp.c | |
parent | 811deaaf8e5141ecaec620c6a67f0836cde5a1aa (diff) | |
download | quagga-3ad9f528fc4ee984d7990c6d6b2c549fe8b92620.tar.bz2 quagga-3ad9f528fc4ee984d7990c6d6b2c549fe8b92620.tar.xz |
2003-06-19 Paul Jakma <paul@dishone.st>
* Fix lib/smux.c's reliance on daemons exporting struct
thread_master *master.
Diffstat (limited to 'zebra/zebra_snmp.c')
-rw-r--r-- | zebra/zebra_snmp.c | 5 |
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 (); } |