blob: 18cc3d8a7c7e4db0bd60ae9269c13df6304f027b [file] [log] [blame]
--binary
06 13 # version, type
00 58 # length
12 34 56 78 # xid
00 09 # multipart message type (OFPMP_METER_DESC)
00 01 # flags (OFPMPF_REPLY_MORE)
00 00 00 00 # pad
00 00 00 01 # meter_id
00 48 # len
00 00 00 00 00 00 # pad
00 00 00 01 # ref_count
00 00 00 00 00 00 00 0a # packet_in_count
00 00 00 00 00 00 00 0a # byte_in_count
00 00 00 03 # duration_sec
b2 d0 5e 00 # duration_nsec
00 00 00 00 00 00 00 0a # band_stats[0].packet_band_count
00 00 00 00 00 00 00 0b # band_stats[0].byte_band_count
00 00 00 00 00 00 00 0c # band_stats[1].packet_band_count
00 00 00 00 00 00 00 0d # band_stats[1].byte_band_count
-- java
builder
.setXid(0x12345678)
.setFlags(ImmutableSet.<OFStatsReplyFlags>of(OFStatsReplyFlags.REPLY_MORE))
.setEntries(ImmutableList.<OFMeterStats>of(factory.buildMeterStats().setMeterId(1)
.setRefCount(1)
.setPacketInCount(U64.of(10))
.setByteInCount(U64.of(10))
.setDurationSec(3)
.setDurationNsec(3000000000L)
.setBandStats(ImmutableList.<OFMeterBandStats>of(factory.buildMeterBandStats().setPacketBandCount(U64.of(10))
.setByteBandCount(U64.of(11))
.build(),
factory.buildMeterBandStats().setPacketBandCount(U64.of(12))
.setByteBandCount(U64.of(13))
.build()))
.build()))
.build()