blob: 36fe9053a396a7e86a3829185138935f5afde46d [file] [log] [blame]
Murat Parlakisikf95672c2016-12-05 00:53:17 -08001-- binary
206 13 # version, type
300 48 # length
412 34 56 78 # xid
500 11 # multipart message type (OFPMP_FLOW_LIGHTWEIGHT(_STATS))
600 01 # flags (REPLY_MORE)
700 00 00 00 # pad
800 38 # length
900 00 # pad
1001 # table_id
1100 # reason (OFPFSR_STATS_REQUEST)
1200 01 # priority
1300 01 # match.type
1400 10 # match.length
1580 00 01 08 # match.oxm_list[0].type_len - IN_PORT
1600 00 00 04 # match.oxm_list[0].value
1700 00 00 05 # match.oxm_list[0].mask
1800 00 # match.pad
1900 1c # stats.length
2080 02 00 08 # stats.oxs_list[0].type_len - DURATION
2100 00 00 00 00 00 00 04 # stats.oxs_list[0].value
2280 02 02 08 # stats.oxs_list[1].type_len - IDLE_TIME (02 -> 0000 0010 -> oxs_field width 7, oxs_reserved width 1)
2300 00 00 00 00 00 00 06 # stats.oxs_list[1].value
2400 00 00 00 # stats.pad
25-- java
26builder
27 .setXid(0x12345678)
28 .setFlags(ImmutableSet.<OFStatsReplyFlags>of(OFStatsReplyFlags.REPLY_MORE))
29 .setEntries(ImmutableList.<OFFlowLightweightStatsEntry>of(factory.buildFlowLightweightStatsEntry().setTableId(TableId.of(1))
30 .setReason(OFFlowStatsReason.STATS_REQUEST)
31 .setPriority(1)
32 .setMatch(factory.buildMatch()
33 .setMasked(MatchField.IN_PORT, OFPort.of(4), OFPort.of(5))
34 .build())
35 .setStats(factory.buildStatV6()
36 .setOxsFields(OFOxsList.of(factory.oxss().buildDuration().setValue(U64.of(4)).build(),
37 factory.oxss().buildIdleTime().setValue(U64.of(6)).build()))
38 .build())
39 .build()))
40 .build();