blob: 36fe9053a396a7e86a3829185138935f5afde46d [file] [log] [blame]
-- binary
06 13 # version, type
00 48 # length
12 34 56 78 # xid
00 11 # multipart message type (OFPMP_FLOW_LIGHTWEIGHT(_STATS))
00 01 # flags (REPLY_MORE)
00 00 00 00 # pad
00 38 # length
00 00 # pad
01 # table_id
00 # reason (OFPFSR_STATS_REQUEST)
00 01 # priority
00 01 # match.type
00 10 # match.length
80 00 01 08 # match.oxm_list[0].type_len - IN_PORT
00 00 00 04 # match.oxm_list[0].value
00 00 00 05 # match.oxm_list[0].mask
00 00 # match.pad
00 1c # stats.length
80 02 00 08 # stats.oxs_list[0].type_len - DURATION
00 00 00 00 00 00 00 04 # stats.oxs_list[0].value
80 02 02 08 # stats.oxs_list[1].type_len - IDLE_TIME (02 -> 0000 0010 -> oxs_field width 7, oxs_reserved width 1)
00 00 00 00 00 00 00 06 # stats.oxs_list[1].value
00 00 00 00 # stats.pad
-- java
builder
.setXid(0x12345678)
.setFlags(ImmutableSet.<OFStatsReplyFlags>of(OFStatsReplyFlags.REPLY_MORE))
.setEntries(ImmutableList.<OFFlowLightweightStatsEntry>of(factory.buildFlowLightweightStatsEntry().setTableId(TableId.of(1))
.setReason(OFFlowStatsReason.STATS_REQUEST)
.setPriority(1)
.setMatch(factory.buildMatch()
.setMasked(MatchField.IN_PORT, OFPort.of(4), OFPort.of(5))
.build())
.setStats(factory.buildStatV6()
.setOxsFields(OFOxsList.of(factory.oxss().buildDuration().setValue(U64.of(4)).build(),
factory.oxss().buildIdleTime().setValue(U64.of(6)).build()))
.build())
.build()))
.build();