diff options
author | paul <paul> | 2003-06-19 03:21:07 +0200 |
---|---|---|
committer | paul <paul> | 2003-06-19 03:21:07 +0200 |
commit | dd488a78add05f10f58f4096dca622c6b5f1f0c9 (patch) | |
tree | 22c986ccc07a5378e5b99fcdf32cc953c841b8d8 /ripd/rip_snmp.c | |
parent | 2003-06-19 Paul Jakma <paul@dishone.st> (diff) | |
download | frr-dd488a78add05f10f58f4096dca622c6b5f1f0c9.tar.xz frr-dd488a78add05f10f58f4096dca622c6b5f1f0c9.zip |
2003-06-19 Paul Jakma <paul@dishone.st>
* Fix lib/smux.c's reliance on daemons exporting struct
thread_master *master.
Diffstat (limited to 'ripd/rip_snmp.c')
-rw-r--r-- | ripd/rip_snmp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ripd/rip_snmp.c b/ripd/rip_snmp.c index 5a5060fd9..72f0ff2d9 100644 --- a/ripd/rip_snmp.c +++ b/ripd/rip_snmp.c @@ -152,6 +152,8 @@ struct variable rip_variables[] = {RIP2PEERRCVBADROUTES, COUNTER, RONLY, rip2PeerTable, 3, {4, 1, 6}} }; + +extern struct thread_master *master; static u_char * rip2Globals (struct variable *v, oid name[], size_t *length, @@ -406,9 +408,9 @@ rip2IfConfSend (struct rip_interface *ri) return ripVersion1; else if (rip) { - if (rip->version == RIPv2) + if (rip->version_send == RIPv2) return ripVersion2; - else if (rip->version == RIPv1) + else if (rip->version_send == RIPv1) return ripVersion1; } return doNotSend; @@ -573,7 +575,7 @@ rip_snmp_init () { rip_ifaddr_table = route_table_init (); - smux_init (ripd_oid, sizeof (ripd_oid) / sizeof (oid)); + smux_init (master, ripd_oid, sizeof (ripd_oid) / sizeof (oid)); REGISTER_MIB("mibII/rip", rip_variables, variable, rip_oid); smux_start (); } |