summaryrefslogtreecommitdiff
path: root/ripd
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-13 10:33:26 +0000
committerhasso <hasso>2004-10-13 10:33:26 +0000
commitc75105ab6e6eeac0b013eab186c97641984f68cc (patch)
treeea221df06e957de7e83f379c9b45f578762736e7 /ripd
parentd68614db1dc36a6814fee33f584417b1441a83e4 (diff)
Make initializing smux connection configurable - "smux peer OID" command
initializes connection, and "no smux peer" command terminates it. Fixes bugzilla #47 and #112.
Diffstat (limited to 'ripd')
-rw-r--r--ripd/ChangeLog5
-rw-r--r--ripd/rip_snmp.c8
2 files changed, 6 insertions, 7 deletions
diff --git a/ripd/ChangeLog b/ripd/ChangeLog
index 8327abf8..ee878ff6 100644
--- a/ripd/ChangeLog
+++ b/ripd/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-13 Hasso Tepper <hasso at quagga.net>
+
+ * ripd_snmp.c: Remove defaults used to initialize smux connection to
+ snmpd. Connection is initialized only if smux peer is configured.
+
2004-10-11 Hasso Tepper <hasso at quagga.net>
* *.c: Make more strings const.
diff --git a/ripd/rip_snmp.c b/ripd/rip_snmp.c
index 72f0ff2d..93773bc5 100644
--- a/ripd/rip_snmp.c
+++ b/ripd/rip_snmp.c
@@ -41,10 +41,6 @@
/* RIPv2-MIB. */
#define RIPV2MIB 1,3,6,1,2,1,23
-/* Zebra enterprise RIP MIB. This variable is used for register
- RIPv2-MIB to SNMP agent under SMUX protocol. */
-#define RIPDOID 1,3,6,1,4,1,3317,1,2,3
-
/* RIPv2-MIB rip2Globals values. */
#define RIP2GLOBALROUTECHANGES 1
#define RIP2GLOBALQUERIES 2
@@ -90,7 +86,6 @@ SNMP_LOCAL_VARIABLES
/* RIP-MIB instances. */
oid rip_oid [] = { RIPV2MIB };
-oid ripd_oid [] = { RIPDOID };
/* Interface cache table sorted by interface's address. */
struct route_table *rip_ifaddr_table;
@@ -575,8 +570,7 @@ rip_snmp_init ()
{
rip_ifaddr_table = route_table_init ();
- smux_init (master, ripd_oid, sizeof (ripd_oid) / sizeof (oid));
+ smux_init (master);
REGISTER_MIB("mibII/rip", rip_variables, variable, rip_oid);
- smux_start ();
}
#endif /* HAVE_SNMP */