"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/agent/core/dcsnmp.cpp" between
netxms-3.8.382.tar.gz and netxms-3.8.405.tar.gz

About: NetXMS is a multi-platform open source network management and monitoring system.

dcsnmp.cpp  (netxms-3.8.382):dcsnmp.cpp  (netxms-3.8.405)
skipping to change at line 151 skipping to change at line 151
s_snmpTargetsLock.unlock(); s_snmpTargetsLock.unlock();
} }
/** /**
* Get value from SNMP node * Get value from SNMP node
*/ */
uint32_t GetSnmpValue(const uuid& target, uint16_t port, SNMP_Version version, c onst TCHAR *oid, TCHAR *value, int interpretRawValue) uint32_t GetSnmpValue(const uuid& target, uint16_t port, SNMP_Version version, c onst TCHAR *oid, TCHAR *value, int interpretRawValue)
{ {
s_snmpTargetsLock.lock(); s_snmpTargetsLock.lock();
shared_ptr<SNMPTarget> t = s_snmpTargets.getShared(target.getValue()); shared_ptr<SNMPTarget> t = s_snmpTargets.getShared(target.getValue());
if (!t) // cannot use t == nullptr because of HP aCC issues if (t == nullptr)
{ {
s_snmpTargetsLock.unlock(); s_snmpTargetsLock.unlock();
TCHAR buffer[64]; TCHAR buffer[64];
nxlog_debug_tag(DEBUG_TAG, 6, _T("SNMP target with guid %s not found"), ta rget.toString(buffer)); nxlog_debug_tag(DEBUG_TAG, 6, _T("SNMP target with guid %s not found"), ta rget.toString(buffer));
return ERR_INTERNAL_ERROR; return ERR_INTERNAL_ERROR;
} }
s_snmpTargetsLock.unlock(); s_snmpTargetsLock.unlock();
SNMP_Transport *snmp = t->getTransport(port); SNMP_Transport *snmp = t->getTransport(port);
skipping to change at line 290 skipping to change at line 290
} }
/** /**
* Get table from SNMP node * Get table from SNMP node
*/ */
uint32_t GetSnmpTable(const uuid& target, uint16_t port, SNMP_Version version, c onst TCHAR *oid, uint32_t GetSnmpTable(const uuid& target, uint16_t port, SNMP_Version version, c onst TCHAR *oid,
const ObjectArray<SNMPTableColumnDefinition> &columns, Table *value) const ObjectArray<SNMPTableColumnDefinition> &columns, Table *value)
{ {
s_snmpTargetsLock.lock(); s_snmpTargetsLock.lock();
shared_ptr<SNMPTarget> t = s_snmpTargets.getShared(target.getValue()); shared_ptr<SNMPTarget> t = s_snmpTargets.getShared(target.getValue());
if (!t) // cannot use t == nullptr because of HP aCC issues if (t == nullptr)
{ {
s_snmpTargetsLock.unlock(); s_snmpTargetsLock.unlock();
TCHAR buffer[64]; TCHAR buffer[64];
nxlog_debug_tag(DEBUG_TAG, 6, _T("SNMP target with guid %s not found"), ta rget.toString(buffer)); nxlog_debug_tag(DEBUG_TAG, 6, _T("SNMP target with guid %s not found"), ta rget.toString(buffer));
return ERR_INTERNAL_ERROR; return ERR_INTERNAL_ERROR;
} }
s_snmpTargetsLock.unlock(); s_snmpTargetsLock.unlock();
SNMP_Transport *snmp = t->getTransport(port); SNMP_Transport *snmp = t->getTransport(port);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)