コード例 #1
0
 @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)
 }
コード例 #2
0
 @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);
 }