use of com.sun.jmx.snmp.SnmpPduRequest in project jdk8u_jdk by JetBrains.
the class SnmpRequestHandler method newTooBigPdu.
private SnmpPduPacket newTooBigPdu(SnmpPduPacket req) {
SnmpPduRequest result = newErrorResponsePdu(req, SnmpDefinitions.snmpRspTooBig, 0);
result.varBindList = null;
return result;
}
use of com.sun.jmx.snmp.SnmpPduRequest in project jdk8u_jdk by JetBrains.
the class SnmpRequestHandler method newValidResponsePdu.
/**
* Make a response pdu with the specified error status and index.
* NOTE: the response pdu share its varBindList with the request pdu.
*/
private SnmpPduRequest newValidResponsePdu(SnmpPduPacket reqPdu, SnmpVarBind[] varBindList) {
SnmpPduRequest result = new SnmpPduRequest();
result.address = reqPdu.address;
result.port = reqPdu.port;
result.version = reqPdu.version;
result.community = reqPdu.community;
result.type = SnmpPduRequest.pduGetResponsePdu;
result.requestId = reqPdu.requestId;
result.errorStatus = SnmpDefinitions.snmpRspNoError;
result.errorIndex = 0;
result.varBindList = varBindList;
((SnmpAdaptorServer) adaptorServer).updateErrorCounters(result.errorStatus);
return result;
}
Aggregations