</BUG>
}
switch (getVarBindAt(SNMP_SYSUPTIME_OID_INDEX).getVariable().getSyntax()) {
case SMIConstants.SYNTAX_TIMETICKS:
<BUG>log().debug("V2 trap first varbind value is of type TIMETICKS (correct)");
</BUG>
return ((TimeTicks) getVarBindAt(SNMP_SYSUPTIME_OID_INDEX).getVariable()).getValue();
case SMIConstants.SYNTAX_INTEGER32:
<BUG>log().debug("V2 trap first varbind value is of type INTEGER, casting to TIMETICKS");
</BUG>
return ((Integer32) getVarBindAt(SNMP_SYSUPTIME_OID_INDEX).getVariable()).getValue();

protected int getPduLength() {
return getPdu().size();
}
protected long getTimeStamp() {
if (log().isDebugEnabled()) {
log().debug("V2 "+m_pduTypeString+" first varbind value: " + getVarBindAt(0).getVariable().toString());
}
switch (getVarBindAt(SNMP_SYSUPTIME_OID_INDEX).getVariable().getSyntax()) {
case SMIConstants.SYNTAX_TIMETICKS:
log().debug("V2 "+m_pduTypeString+" first varbind value is of type TIMETICKS (correct)");
return ((TimeTicks) getVarBindAt(SNMP_SYSUPTIME_OID_INDEX).getVariable()).getValue();
case SMIConstants.SYNTAX_INTEGER32:
log().debug("V2 "+m_pduTypeString+" first varbind value is of type INTEGER, casting to TIMETICKS");
return ((Integer32) getVarBindAt(SNMP_SYSUPTIME_OID_INDEX).getVariable()).getValue();
