Просмотр исходного кода

Убрал do_sync в функциях snmp_threadsync

TelenkovDmitry 7 лет назад
Родитель
Сommit
7360e50a59
2 измененных файлов с 5 добавлено и 3 удалено
  1. 1 1
      modules/Ethernet/lwipopts.h
  2. 4 2
      thirdparty/lwip/src/apps/snmp/snmp_threadsync.c

+ 1 - 1
modules/Ethernet/lwipopts.h

@@ -245,7 +245,7 @@ The STM32F4x7 allows computing and verifying the IP, UDP, TCP and ICMP checksums
 #define SOCKETS_DEBUG                   LWIP_DBG_OFF
 #define MEMP_DEBUG                      LWIP_DBG_OFF
 #define PING_DEBUG                      LWIP_DBG_OFF
-#define SNMP_MSG_DEBUG                  LWIP_DBG_OFF
+#define SNMP_DEBUG                      LWIP_DBG_OFF
 #define SNMP_MIB_DEBUG                  LWIP_DBG_OFF
 #define TIMERS_DEBUG                    LWIP_DBG_OFF
 #define ICMP_DEBUG                      LWIP_DBG_OFF

+ 4 - 2
thirdparty/lwip/src/apps/snmp/snmp_threadsync.c

@@ -196,13 +196,15 @@ do_sync(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* ins
 snmp_err_t
 snmp_threadsync_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance)
 {
-  return do_sync(root_oid, root_oid_len, instance, get_instance_synced);
+  //return do_sync(root_oid, root_oid_len, instance, get_instance_synced);
+  return SNMP_ERR_NOACCESS;
 }
 
 snmp_err_t
 snmp_threadsync_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance)
 {
-  return do_sync(root_oid, root_oid_len, instance, get_next_instance_synced);
+  //return do_sync(root_oid, root_oid_len, instance, get_next_instance_synced);
+  return SNMP_ERR_NOACCESS;
 }
 
 /** Initializes thread synchronization instance */