Fixed SNMP Counter64 implementation.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5624 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
e86673ad57
commit
15e97a941f
|
@ -2249,7 +2249,7 @@ void SnmpAgent::assignValue(Snmp::VarBind* varBind, AsnValue* val)
|
|||
objSyn->m_choiceType = Snmp::ObjectSyntax::APPLICATION_WIDE;
|
||||
objSyn->m_application_wide = app;
|
||||
app->m_choiceType = Snmp::ApplicationSyntax::BIG_COUNTER_VALUE;
|
||||
app->m_big_counter_value->m_Counter64 = *((u_int64_t*)val->getValue().c_str());
|
||||
app->m_big_counter_value->m_Counter64 = (uint64_t)val->getValue().toInt64();
|
||||
break;
|
||||
case AsnValue::UNSIGNED_INTEGER:
|
||||
objSyn->m_choiceType = Snmp::ObjectSyntax::APPLICATION_WIDE;
|
||||
|
|
Loading…
Reference in New Issue