@Override public void readFrom(final ChannelBuffer data) { if (this.match == null) { this.match = new OFMatch(); } this.match.readFrom(data); this.tableId = data.readByte(); data.readByte(); // pad this.outPort = data.readShort(); }
@Override public void readFrom(final ChannelBuffer data) { if (this.match == null) { this.match = new OFMatch(); } this.match.readFrom(data); this.tableId = data.readByte(); data.readByte(); // pad this.outPort = data.readShort(); }
@Override public void readFrom(final ChannelBuffer data) { super.readFrom(data); if (this.match == null) { this.match = new OFMatch(); } this.match.readFrom(data); this.cookie = data.readLong(); this.command = data.readShort(); this.idleTimeout = data.readShort(); this.hardTimeout = data.readShort(); this.priority = data.readShort(); this.bufferId = data.readInt(); this.outPort = data.readShort(); this.flags = data.readShort(); if (this.actionFactory == null) { throw new RuntimeException("OFActionFactory not set"); } this.actions = this.actionFactory.parseActions(data, this.getLengthU() - OFFlowMod.MINIMUM_LENGTH); }
@Override public void readFrom(final ChannelBuffer data) { this.length = data.readShort(); this.tableId = data.readByte(); data.readByte(); // pad if (this.match == null) { this.match = new OFMatch(); } this.match.readFrom(data); this.durationSeconds = data.readInt(); this.durationNanoseconds = data.readInt(); this.priority = data.readShort(); this.idleTimeout = data.readShort(); this.hardTimeout = data.readShort(); data.readInt(); // pad data.readShort(); // pad this.cookie = data.readLong(); this.packetCount = data.readLong(); this.byteCount = data.readLong(); if (this.actionFactory == null) { throw new RuntimeException("OFActionFactory not set"); } this.actions = this.actionFactory.parseActions(data, this.getLength() - OFFlowStatisticsReply.MINIMUM_LENGTH); }
@Override public void readFrom(final ChannelBuffer data) { super.readFrom(data); if (this.match == null) { this.match = new OFMatch(); } this.match.readFrom(data); this.cookie = data.readLong(); this.priority = data.readShort(); int reasonIndex = 0xff & data.readByte(); if (reasonIndex >= OFFlowRemovedReason.values().length) { reasonIndex = OFFlowRemovedReason.values().length - 1; } this.reason = OFFlowRemovedReason.values()[reasonIndex]; data.readByte(); // pad this.durationSeconds = data.readInt(); this.durationNanoseconds = data.readInt(); this.idleTimeout = data.readShort(); data.readByte(); // pad data.readByte(); // pad this.packetCount = data.readLong(); this.byteCount = data.readLong(); }