private boolean checkPduType(SnmpPduPacket pdu){
  boolean result;
switch (pdu.type) {
case SnmpDefinitions.pduGetRequestPdu:
case SnmpDefinitions.pduGetNextRequestPdu:
case SnmpDefinitions.pduSetRequestPdu:
case SnmpDefinitions.pduGetBulkRequestPdu:
    result=true;
  break;
default :
if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) {
  SNMP_ADAPTOR_LOGGER.logp(Level.FINEST,dbgTag,"checkPduType","cannot respond to this kind of PDU");
}
result=false;
break;
}
return result;
}

private boolean checkPduType ( SnmpPduPacket pdu ) { boolean result ; switch ( pdu . type ) { case SnmpDefinitions . pduGetRequestPdu : case SnmpDefinitions . pduGetNextRequestPdu : case SnmpDefinitions . pduSetRequestPdu : case SnmpDefinitions . pduGetBulkRequestPdu : result = true ; break ; default : if ( SNMP_ADAPTOR_LOGGER . isLoggable ( Level . FINEST ) ) { SNMP_ADAPTOR_LOGGER . logp ( Level . FINEST , dbgTag , "checkPduType" , "cannot respond to this kind of PDU" ) ; } result = false ; break ; } return result ; }
check the type of the pdu : only the get / set / bulk request are accepted .
