All pastes #280088 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-12-15 17:07 UTC
rendered paste body
Index: agent/mibgroup/mibII/ip.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/agent/mibgroup/mibII/ip.c,v
retrieving revision 5.15
diff -u -p -r5.15 ip.c
--- agent/mibgroup/mibII/ip.c   15 Sep 2006 00:48:40 -0000      5.15
+++ agent/mibgroup/mibII/ip.c   15 Dec 2006 17:06:34 -0000
@@ -145,12 +145,18 @@ init_ip(void)
     /*
      * register (using the old-style API) to handle the IP tables
      */
+    if (should_init("ipAddrTable")) {
     REGISTER_MIB("mibII/ipaddr",  ipaddr_variables,
                        variable1, ipaddr_variables_oid);
+    }
+    if (should_init("ipRouteTable")) {
     REGISTER_MIB("mibII/iproute", iproute_variables,
                        variable1, iproute_variables_oid);
+    }
+    if (should_init("ipNetToMediaTable")) {
     REGISTER_MIB("mibII/ipmedia", ipmedia_variables,
                        variable1, ipmedia_variables_oid);
+    }
     if (++ip_module_count == 2)
         REGISTER_SYSOR_ENTRY(ip_module_oid,
                              "The MIB module for managing IP and ICMP implementations");