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. --- ripd/rip_snmp.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ripd/rip_snmp.c') 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 */ -- cgit v1.2.1