@Override
 public void writeTo(ChannelBuffer data) {
   super.writeTo(data);
   data.writeByte(this.virtualLanPriorityCodePoint);
   data.writeShort((short) 0);
   data.writeByte((byte) 0);
 }
 @Override
 public void readFrom(ChannelBuffer data) {
   super.readFrom(data);
   this.virtualLanPriorityCodePoint = data.readByte();
   data.readShort(); // pad
   data.readByte(); // pad
 }
 public void writeTo(ChannelBuffer data) {
   super.writeTo(data);
   data.writeShort(fieldPosition);
   data.writeZero(2);
   data.writeInt(fieldLength);
 }
 public void readFrom(ChannelBuffer data) {
   super.readFrom(data);
   this.fieldPosition = data.readShort();
   data.readBytes(2);
   this.fieldLength = data.readInt();
 }
 public OFActionDeleteField() {
   super.setType(OFActionType.DELETE_FIELD);
   super.setLength((short) MINIMUM_LENGTH);
 }
Exemple #6
0
 @Override
 public void writeTo(ByteBuffer data) {
   super.writeTo(data);
   data.putInt(0); // pad
 }
Exemple #7
0
 @Override
 public void readFrom(ByteBuffer data) {
   super.readFrom(data);
   data.getInt(); // pad
 }
Exemple #8
0
 public OFActionPopPBB() {
   super();
   super.setType(OFActionType.POP_PBB);
   super.setLength((short) MINIMUM_LENGTH);
 }
 public OFActionVirtualLanPriorityCodePoint() {
   super.setType(OFActionType.SET_VLAN_PCP);
   super.setLength((short) MINIMUM_LENGTH);
 }