@Override
 protected void fromWireData(ByteBuffer buffer) {
   byte tmp = buffer.get();
   revisionOnly = getBit(tmp, 7);
   channelNumber = Code.fromByte(IpmiChannelNumber.class, (byte) (tmp & 0xF));
   parameterSelector = buffer.get();
   setSelector = buffer.get();
   blockSelector = buffer.get();
 }
Exemplo n.º 2
0
 @Override
 protected void fromWireUnchecked(IpmiPacketContext context, ByteBuffer buffer) {
   messageTag = buffer.get();
   byte requestedMaximumPrivilegeLevelByte = buffer.get();
   requestedMaximumPrivilegeLevel =
       Code.fromByte(
           RequestedMaximumPrivilegeLevel.class,
           (byte) (requestedMaximumPrivilegeLevelByte & RequestedMaximumPrivilegeLevel.MASK));
   assertWireBytesZero(buffer, 2);
   consoleSessionId = fromWireIntLE(buffer);
   authenticationAlgorithm =
       IpmiAlgorithmUtils.fromWireUnchecked(buffer, IpmiAuthenticationAlgorithm.class);
   integrityAlgorithm = IpmiAlgorithmUtils.fromWireUnchecked(buffer, IpmiIntegrityAlgorithm.class);
   confidentialityAlgorithm =
       IpmiAlgorithmUtils.fromWireUnchecked(buffer, IpmiConfidentialityAlgorithm.class);
 }