builder.setDurationNsec(rawMessage.readUnsignedInt());
builder.setIdleTimeout(rawMessage.readUnsignedShort());
builder.setHardTimeout(rawMessage.readUnsignedShort());
- byte[] packet_count = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
- rawMessage.readBytes(packet_count);
- builder.setPacketCount(new BigInteger(1, packet_count));
- byte[] byte_count = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
- rawMessage.readBytes(byte_count);
- builder.setByteCount(new BigInteger(1, byte_count));
+ byte[] packetCount = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
+ rawMessage.readBytes(packetCount);
+ builder.setPacketCount(new BigInteger(1, packetCount));
+ byte[] byteCount = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
+ rawMessage.readBytes(byteCount);
+ builder.setByteCount(new BigInteger(1, byteCount));
OFDeserializer<Match> matchDeserializer = registry.getDeserializer(new MessageCodeKey(
EncodeConstants.OF13_VERSION_ID, EncodeConstants.EMPTY_VALUE, Match.class));
builder.setMatch(matchDeserializer.deserialize(rawMessage));
builder.setDurationNsec(rawMessage.readUnsignedInt());
builder.setIdleTimeout(rawMessage.readUnsignedShort());
rawMessage.skipBytes(PADDING_IN_FLOW_REMOVED_MESSAGE_2);
- byte[] packet_count = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
- rawMessage.readBytes(packet_count);
- builder.setPacketCount(new BigInteger(1, packet_count));
- byte[] byte_count = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
- rawMessage.readBytes(byte_count);
- builder.setByteCount(new BigInteger(1, byte_count));
+ byte[] packetCount = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
+ rawMessage.readBytes(packetCount);
+ builder.setPacketCount(new BigInteger(1, packetCount));
+ byte[] byteCount = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
+ rawMessage.readBytes(byteCount);
+ builder.setByteCount(new BigInteger(1, byteCount));
return builder.build();
}
byte[] metadata = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];\r
input.readBytes(metadata);\r
metadataBuilder.setMetadata(metadata);\r
- byte[] metadata_mask = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];\r
- input.readBytes(metadata_mask);\r
- metadataBuilder.setMetadataMask(metadata_mask);\r
+ byte[] metadataMask = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];\r
+ input.readBytes(metadataMask);\r
+ metadataBuilder.setMetadataMask(metadataMask);\r
builder.addAugmentation(MetadataInstruction.class, metadataBuilder.build());\r
return builder.build();\r
}\r
* @return decoded FlowWildcardsV10
*/
public static FlowWildcardsV10 createWildcards(final long input) {
- boolean _iNPORT = (input & (1 << 0)) != 0;
- boolean _dLVLAN = (input & (1 << 1)) != 0;
- boolean _dLSRC = (input & (1 << 2)) != 0;
- boolean _dLDST = (input & (1 << 3)) != 0;
- boolean _dLTYPE = (input & (1 << 4)) != 0;
- boolean _nWPROTO = (input & (1 << 5)) != 0;
- boolean _tPSRC = (input & (1 << 6)) != 0;
- boolean _tPDST = (input & (1 << 7)) != 0;
- boolean _dLVLANPCP = (input & (1 << 20)) != 0;
- boolean _nWTOS = (input & (1 << 21)) != 0;
- return new FlowWildcardsV10(_dLDST, _dLSRC, _dLTYPE, _dLVLAN,
- _dLVLANPCP, _iNPORT, _nWPROTO, _nWTOS, _tPDST, _tPSRC);
+ boolean inPort = (input & (1 << 0)) != 0;
+ boolean dlVLAN = (input & (1 << 1)) != 0;
+ boolean dlSrc = (input & (1 << 2)) != 0;
+ boolean dlDst = (input & (1 << 3)) != 0;
+ boolean dLType = (input & (1 << 4)) != 0;
+ boolean nwProto = (input & (1 << 5)) != 0;
+ boolean tpSrc = (input & (1 << 6)) != 0;
+ boolean tpDst = (input & (1 << 7)) != 0;
+ boolean dlVLANpcp = (input & (1 << 20)) != 0;
+ boolean nwTos = (input & (1 << 21)) != 0;
+ return new FlowWildcardsV10(dlDst, dlSrc, dLType, dlVLAN,
+ dlVLANpcp, inPort, nwProto, nwTos, tpDst, tpSrc);
}
/**