/** @inheritDoc */
 @Override
 public PrimitiveSink putInt(final int theInt) {
   for (PrimitiveSink aSink : this) {
     aSink.putInt(theInt);
   }
   return this;
 }
 /** @inheritDoc */
 @Override
 public PrimitiveSink putBoolean(final boolean theBool) {
   for (PrimitiveSink aSink : this) {
     aSink.putBoolean(theBool);
   }
   return this;
 }
 /** @inheritDoc */
 @Override
 public PrimitiveSink putFloat(final float theFloat) {
   for (PrimitiveSink aSink : this) {
     aSink.putFloat(theFloat);
   }
   return this;
 }
 /** @inheritDoc */
 @Override
 public PrimitiveSink putDouble(final double theDouble) {
   for (PrimitiveSink aSink : this) {
     aSink.putDouble(theDouble);
   }
   return this;
 }
 /** @inheritDoc */
 @Override
 public PrimitiveSink putShort(final short theShort) {
   for (PrimitiveSink aSink : this) {
     aSink.putShort(theShort);
   }
   return this;
 }
 /** @inheritDoc */
 @Override
 public PrimitiveSink putByte(final byte theByte) {
   for (PrimitiveSink aSink : this) {
     aSink.putByte(theByte);
   }
   return this;
 }
 /** @inheritDoc */
 @Override
 public PrimitiveSink putLong(final long theLong) {
   for (PrimitiveSink aSink : this) {
     aSink.putLong(theLong);
   }
   return this;
 }
 /** @inheritDoc */
 @Override
 public PrimitiveSink putChar(final char theChar) {
   for (PrimitiveSink aSink : this) {
     aSink.putChar(theChar);
   }
   return this;
 }
 @Override
 public void funnel(OFBsnTlvActorSystemMacVer14 message, PrimitiveSink sink) {
   // fixed value property type = 0x29
   sink.putShort((short) 0x29);
   // fixed value property length = 10
   sink.putShort((short) 0xa);
   message.value.putTo(sink);
 }
 @Override
 public void funnel(OFActionCopyTtlInVer11 message, PrimitiveSink sink) {
   // fixed value property type = 12
   sink.putShort((short) 0xc);
   // fixed value property length = 8
   sink.putShort((short) 0x8);
   // skip pad (4 bytes)
 }
 @Override
 public void funnel(OFActionSetNwDstVer11 message, PrimitiveSink sink) {
   // fixed value property type = 6
   sink.putShort((short) 0x6);
   // fixed value property length = 8
   sink.putShort((short) 0x8);
   message.nwAddr.putTo(sink);
 }
 @Override
 public void funnel(OFBsnTlvStatusVer13 message, PrimitiveSink sink) {
   // fixed value property type = 0x61
   sink.putShort((short) 0x61);
   // fixed value property length = 5
   sink.putShort((short) 0x5);
   OFBsnStatusSerializerVer13.putTo(message.value, sink);
 }
 @Override
 public void funnel(OFBsnTlvIcmpTypeVer14 message, PrimitiveSink sink) {
   // fixed value property type = 0x44
   sink.putShort((short) 0x44);
   // fixed value property length = 5
   sink.putShort((short) 0x5);
   sink.putShort(message.value);
 }
 @Override
 public void funnel(OFBsnTlvQueueWeightVer13 message, PrimitiveSink sink) {
   // fixed value property type = 0x15
   sink.putShort((short) 0x15);
   // fixed value property length = 8
   sink.putShort((short) 0x8);
   sink.putLong(message.value);
 }
 @Override
 public void funnel(OFBsnTlvMissPacketsVer13 message, PrimitiveSink sink) {
   // fixed value property type = 0xd
   sink.putShort((short) 0xd);
   // fixed value property length = 12
   sink.putShort((short) 0xc);
   message.value.putTo(sink);
 }
 @Override
 public void funnel(OFActionSetDlSrcVer10 message, PrimitiveSink sink) {
   // fixed value property type = 4
   sink.putShort((short) 0x4);
   // fixed value property length = 16
   sink.putShort((short) 0x10);
   message.dlAddr.putTo(sink);
   // skip pad (6 bytes)
 }
Exemplo n.º 17
0
 @Override
 public void funnel(OFEchoRequestVer10 message, PrimitiveSink sink) {
   // fixed value property version = 1
   sink.putByte((byte) 0x1);
   // fixed value property type = 2
   sink.putByte((byte) 0x2);
   // FIXME: skip funnel of length
   sink.putLong(message.xid);
   sink.putBytes(message.data);
 }
 @Override
 public void funnel(OFInstructionIdBsnDisableL3Ver14 message, PrimitiveSink sink) {
   // fixed value property type = 65535
   sink.putShort((short) 0xffff);
   // fixed value property length = 12
   sink.putShort((short) 0xc);
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0xdL
   sink.putInt(0xd);
 }
 @Override
 public void funnel(OFInstructionIdBsnRequireVlanXlateVer13 message, PrimitiveSink sink) {
   // fixed value property type = 65535
   sink.putShort((short) 0xffff);
   // fixed value property length = 12
   sink.putShort((short) 0xc);
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0x8L
   sink.putInt(0x8);
 }
 @Override
 public void funnel(OFBadPropertyErrorMsgVer14 message, PrimitiveSink sink) {
   // fixed value property version = 5
   sink.putByte((byte) 0x5);
   // fixed value property type = 1
   sink.putByte((byte) 0x1);
   // FIXME: skip funnel of length
   sink.putLong(message.xid);
   // fixed value property errType = 14
   sink.putShort((short) 0xe);
   OFBadPropertyCodeSerializerVer14.putTo(message.code, sink);
   message.data.putTo(sink);
 }
 @Override
 public void funnel(OFQueueOpFailedErrorMsgVer13 message, PrimitiveSink sink) {
   // fixed value property version = 4
   sink.putByte((byte) 0x4);
   // fixed value property type = 1
   sink.putByte((byte) 0x1);
   // FIXME: skip funnel of length
   sink.putLong(message.xid);
   // fixed value property errType = 9
   sink.putShort((short) 0x9);
   OFQueueOpFailedCodeSerializerVer13.putTo(message.code, sink);
   sink.putBytes(message.data);
 }
 @Override
 public void funnel(OFFlowModFailedErrorMsgVer10 message, PrimitiveSink sink) {
   // fixed value property version = 1
   sink.putByte((byte) 0x1);
   // fixed value property type = 1
   sink.putByte((byte) 0x1);
   // FIXME: skip funnel of length
   sink.putLong(message.xid);
   // fixed value property errType = 3
   sink.putShort((short) 0x3);
   OFFlowModFailedCodeSerializerVer10.putTo(message.code, sink);
   message.data.putTo(sink);
 }
 @Override
 public void funnel(OFMeterStatsReplyVer14 message, PrimitiveSink sink) {
   // fixed value property version = 5
   sink.putByte((byte) 0x5);
   // fixed value property type = 19
   sink.putByte((byte) 0x13);
   // FIXME: skip funnel of length
   sink.putLong(message.xid);
   // fixed value property statsType = 9
   sink.putShort((short) 0x9);
   OFStatsReplyFlagsSerializerVer14.putTo(message.flags, sink);
   // skip pad (4 bytes)
   FunnelUtils.putList(message.entries, sink);
 }
 @Override
 public void funnel(OFMeterFeaturesStatsReplyVer14 message, PrimitiveSink sink) {
   // fixed value property version = 5
   sink.putByte((byte) 0x5);
   // fixed value property type = 19
   sink.putByte((byte) 0x13);
   // fixed value property length = 32
   sink.putShort((short) 0x20);
   sink.putLong(message.xid);
   // fixed value property statsType = 11
   sink.putShort((short) 0xb);
   OFStatsReplyFlagsSerializerVer14.putTo(message.flags, sink);
   // skip pad (4 bytes)
   message.features.putTo(sink);
 }
 @Override
 public void funnel(OFBsnVlanCounterStatsEntryVer13 message, PrimitiveSink sink) {
   // FIXME: skip funnel of length
   sink.putInt(message.vlanVid);
   // skip pad (4 bytes)
   FunnelUtils.putList(message.values, sink);
 }
 @Override
 public void funnel(OFOxmSctpDstMaskedVer14 message, PrimitiveSink sink) {
   // fixed value property typeLen = 0x80002504L
   sink.putInt((int) 0x80002504);
   message.value.putTo(sink);
   message.mask.putTo(sink);
 }
 @Override
 public void funnel(OFOxmBsnL3InterfaceClassIdMaskedVer12 message, PrimitiveSink sink) {
   // fixed value property typeLen = 0x30908L
   sink.putInt(0x30908);
   message.value.putTo(sink);
   message.mask.putTo(sink);
 }
 @Override
 public void funnel(OFOxmIcmpv4CodeMaskedVer12 message, PrimitiveSink sink) {
   // fixed value property typeLen = 0x80002902L
   sink.putInt((int) 0x80002902);
   message.value.putTo(sink);
   message.mask.putTo(sink);
 }
 @Override
 public void funnel(OFOxmBsnUdf1MaskedVer12 message, PrimitiveSink sink) {
   // fixed value property typeLen = 0x31308L
   sink.putInt(0x31308);
   message.value.putTo(sink);
   message.mask.putTo(sink);
 }
 @Override
 public void funnel(OFOxmArpTpaMaskedVer12 message, PrimitiveSink sink) {
   // fixed value property typeLen = 0x80002f08L
   sink.putInt((int) 0x80002f08);
   message.value.putTo(sink);
   message.mask.putTo(sink);
 }