netsnmp-5.5-no-ifxtable-module-fix.patch 826 B

123456789101112131415161718
  1. --- net-snmp-5.5.theorig/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c 2009-06-12 12:02:22.000000000 -0700
  2. +++ net-snmp-5.5/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c 2009-10-20 11:29:41.000000000 -0700
  3. @@ -374,6 +374,7 @@ _check_interface_entry_for_updates(ifTab
  4. */
  5. if (oper_changed) {
  6. rowreq_ctx->data.ifLastChange = netsnmp_get_agent_uptime();
  7. +#ifdef USING_IF_MIB_IFXTABLE_IFXTABLE_MODULE
  8. if (rowreq_ctx->data.ifLinkUpDownTrapEnable == 1) {
  9. if (rowreq_ctx->data.ifOperStatus == IFOPERSTATUS_UP) {
  10. oid notification_oid[] = { 1, 3, 6, 1, 6, 3, 1, 1, 5, 4 };
  11. @@ -389,6 +390,7 @@ _check_interface_entry_for_updates(ifTab
  12. rowreq_ctx->data.ifOperStatus);
  13. }
  14. }
  15. +#endif
  16. }
  17. else