summaryrefslogtreecommitdiff
path: root/ospfd
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 /ospfd
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 'ospfd')
-rw-r--r--ospfd/ChangeLog2
-rw-r--r--ospfd/ospf_snmp.c8
2 files changed, 3 insertions, 7 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog
index 10d26583..914ed930 100644
--- a/ospfd/ChangeLog
+++ b/ospfd/ChangeLog
@@ -1,6 +1,8 @@
2004-10-13 Hasso Tepper <hasso at quagga.net>
* ospf_main.c: Unbreak compilation with ospfapi disabled.
+ * ospf_snmp.c: Remove defaults used to initialize smux connection to
+ snmpd. Connection is initialized only if smux peer is configured.
2004-10-12 Hasso Tepper <hasso at quagga.net>
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index ccb64982..db0aaf6e 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -52,10 +52,6 @@
/* OSPF2-MIB. */
#define OSPF2MIB 1,3,6,1,2,1,14
-/* Zebra enterprise OSPF MIB. This variable is used for register
- OSPF MIB to SNMP agent under SMUX protocol. */
-#define OSPFDOID 1,3,6,1,4,1,3317,1,2,5
-
/* OSPF MIB General Group values. */
#define OSPFROUTERID 1
#define OSPFADMINSTAT 2
@@ -214,7 +210,6 @@ SNMP_LOCAL_VARIABLES
/* OSPF-MIB instances. */
oid ospf_oid [] = { OSPF2MIB };
-oid ospfd_oid [] = { OSPFDOID };
/* IP address 0.0.0.0. */
static struct in_addr ospf_empty_addr = {0};
@@ -2479,8 +2474,7 @@ ospf_snmp_init ()
{
ospf_snmp_iflist = list_new ();
ospf_snmp_vl_table = route_table_init ();
- smux_init (om->master, ospfd_oid, sizeof (ospfd_oid) / sizeof (oid));
+ smux_init (om->master);
REGISTER_MIB("mibII/ospf", ospf_variables, variable, ospf_oid);
- smux_start ();
}
#endif /* HAVE_SNMP */