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 /ripd | |
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 'ripd')
-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 5a5060fd..72f0ff2d 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 (); } |