diff options
author | paul <paul> | 2003-06-19 01:21:07 +0000 |
---|---|---|
committer | paul <paul> | 2003-06-19 01:21:07 +0000 |
commit | dd488a78add05f10f58f4096dca622c6b5f1f0c9 (patch) | |
tree | 22c986ccc07a5378e5b99fcdf32cc953c841b8d8 /zebra | |
parent | 3db0a77852cc0de1385f7046355321229a567924 (diff) |
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')
-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 (); } |