From c75105ab6e6eeac0b013eab186c97641984f68cc Mon Sep 17 00:00:00 2001 From: hasso Date: Wed, 13 Oct 2004 10:33:26 +0000 Subject: Make initializing smux connection configurable - "smux peer OID" command initializes connection, and "no smux peer" command terminates it. Fixes bugzilla #47 and #112. --- ospfd/ChangeLog | 2 ++ ospfd/ospf_snmp.c | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'ospfd') 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 * 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 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 */ -- cgit v1.2.1