@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(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(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(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(OFBsnBwEnableSetRequestVer11 message, PrimitiveSink sink) {
   // fixed value property version = 2
   sink.putByte((byte) 0x2);
   // fixed value property type = 4
   sink.putByte((byte) 0x4);
   // fixed value property length = 20
   sink.putShort((short) 0x14);
   sink.putLong(message.xid);
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0x12L
   sink.putInt(0x12);
   sink.putLong(message.enable);
 }
 @Override
 public void funnel(OFPortStatsRequestVer13 message, PrimitiveSink sink) {
   // fixed value property version = 4
   sink.putByte((byte) 0x4);
   // fixed value property type = 18
   sink.putByte((byte) 0x12);
   // fixed value property length = 24
   sink.putShort((short) 0x18);
   sink.putLong(message.xid);
   // fixed value property statsType = 4
   sink.putShort((short) 0x4);
   OFStatsRequestFlagsSerializerVer13.putTo(message.flags, sink);
   // skip pad (4 bytes)
   message.portNo.putTo(sink);
   // skip pad (4 bytes)
 }
 /** @inheritDoc */
 @Override
 public PrimitiveSink putByte(final byte theByte) {
   for (PrimitiveSink aSink : this) {
     aSink.putByte(theByte);
   }
   return this;
 }
 @Override
 public void funnel(OFBsnSetLacpReplyVer14 message, PrimitiveSink sink) {
   // fixed value property version = 5
   sink.putByte((byte) 0x5);
   // fixed value property type = 4
   sink.putByte((byte) 0x4);
   // fixed value property length = 24
   sink.putShort((short) 0x18);
   sink.putLong(message.xid);
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0x2aL
   sink.putInt(0x2a);
   sink.putLong(message.status);
   message.portNo.putTo(sink);
 }
 @Override
 public void funnel(OFBsnSetMirroringVer14 message, PrimitiveSink sink) {
   // fixed value property version = 5
   sink.putByte((byte) 0x5);
   // fixed value property type = 4
   sink.putByte((byte) 0x4);
   // fixed value property length = 20
   sink.putShort((short) 0x14);
   sink.putLong(message.xid);
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0x3L
   sink.putInt(0x3);
   sink.putShort(message.reportMirrorPorts);
   // skip pad (3 bytes)
 }
 @Override
 public void funnel(OFBsnPduTxRequestVer10 message, PrimitiveSink sink) {
   // fixed value property version = 1
   sink.putByte((byte) 0x1);
   // fixed value property type = 4
   sink.putByte((byte) 0x4);
   // FIXME: skip funnel of length
   sink.putLong(message.xid);
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0x1fL
   sink.putInt(0x1f);
   sink.putLong(message.txIntervalMs);
   message.portNo.putTo(sink);
   sink.putShort(message.slotNum);
   // skip pad (3 bytes)
   sink.putBytes(message.data);
 }
 @Override
 public void funnel(OFBsnGentableEntryAddVer13 message, PrimitiveSink sink) {
   // fixed value property version = 4
   sink.putByte((byte) 0x4);
   // fixed value property type = 4
   sink.putByte((byte) 0x4);
   // FIXME: skip funnel of length
   sink.putLong(message.xid);
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0x2eL
   sink.putInt(0x2e);
   message.tableId.putTo(sink);
   // FIXME: skip funnel of keyLength
   message.checksum.putTo(sink);
   FunnelUtils.putList(message.key, sink);
   FunnelUtils.putList(message.value, sink);
 }
 @Override
 public void funnel(OFBsnGentableDescStatsRequestVer13 message, PrimitiveSink sink) {
   // fixed value property version = 4
   sink.putByte((byte) 0x4);
   // fixed value property type = 18
   sink.putByte((byte) 0x12);
   // fixed value property length = 24
   sink.putShort((short) 0x18);
   sink.putLong(message.xid);
   // fixed value property statsType = 65535
   sink.putShort((short) 0xffff);
   OFStatsRequestFlagsSerializerVer13.putTo(message.flags, sink);
   // skip pad (4 bytes)
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0x4L
   sink.putInt(0x4);
 }
 @Override
 public void funnel(OFBsnGentableBucketStatsReplyVer13 message, PrimitiveSink sink) {
   // fixed value property version = 4
   sink.putByte((byte) 0x4);
   // fixed value property type = 19
   sink.putByte((byte) 0x13);
   // FIXME: skip funnel of length
   sink.putLong(message.xid);
   // fixed value property statsType = 65535
   sink.putShort((short) 0xffff);
   OFStatsReplyFlagsSerializerVer13.putTo(message.flags, sink);
   // skip pad (4 bytes)
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0x5L
   sink.putInt(0x5);
   FunnelUtils.putList(message.entries, sink);
 }
 @Override
 public void funnel(OFBsnSetPktinSuppressionRequestVer12 message, PrimitiveSink sink) {
   // fixed value property version = 3
   sink.putByte((byte) 0x3);
   // fixed value property type = 4
   sink.putByte((byte) 0x4);
   // fixed value property length = 32
   sink.putShort((short) 0x20);
   sink.putLong(message.xid);
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0xbL
   sink.putInt(0xb);
   sink.putBoolean(message.enabled);
   // skip pad (1 bytes)
   sink.putInt(message.idleTimeout);
   sink.putInt(message.hardTimeout);
   sink.putInt(message.priority);
   message.cookie.putTo(sink);
 }
 @Override
 public void funnel(OFBsnImageDescStatsReplyVer14 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 = 536
   sink.putShort((short) 0x218);
   sink.putLong(message.xid);
   // fixed value property statsType = 65535
   sink.putShort((short) 0xffff);
   OFStatsReplyFlagsSerializerVer14.putTo(message.flags, sink);
   // skip pad (4 bytes)
   // fixed value property experimenter = 0x5c16c7L
   sink.putInt(0x5c16c7);
   // fixed value property subtype = 0xeL
   sink.putInt(0xe);
   sink.putUnencodedChars(message.imageChecksum);
   sink.putUnencodedChars(message.startupConfigChecksum);
 }
 @Override
 public void funnel(OFGroupFeaturesStatsReplyVer12 message, PrimitiveSink sink) {
   // fixed value property version = 3
   sink.putByte((byte) 0x3);
   // fixed value property type = 19
   sink.putByte((byte) 0x13);
   // fixed value property length = 56
   sink.putShort((short) 0x38);
   sink.putLong(message.xid);
   // fixed value property statsType = 8
   sink.putShort((short) 0x8);
   OFStatsReplyFlagsSerializerVer12.putTo(message.flags, sink);
   // skip pad (4 bytes)
   sink.putLong(message.types);
   sink.putLong(message.capabilities);
   sink.putLong(message.maxGroupsAll);
   sink.putLong(message.maxGroupsSelect);
   sink.putLong(message.maxGroupsIndirect);
   sink.putLong(message.maxGroupsFf);
   sink.putLong(message.actionsAll);
   sink.putLong(message.actionsSelect);
   sink.putLong(message.actionsIndirect);
   sink.putLong(message.actionsFf);
 }
 public static void putTo(OFFlowRemovedReason e, PrimitiveSink sink) {
   sink.putByte(toWireValue(e));
 }
예제 #20
0
파일: U8.java 프로젝트: pooyasp/loxigen
 @Override
 public void putTo(PrimitiveSink sink) {
   sink.putByte(raw);
 }