blob: 285250638c56afd37256e429bf35c729ec65e711 [file] [log] [blame]
Murat Parlakisikf95672c2016-12-05 00:53:17 -08001--binary
206 13 # version, type
300 30 # length
412 34 56 78 # xid
500 02 # multipart message type (OFPMP_AGGREGATE_STATS)
600 01 # flags (OFPMPF_REPLY_MORE)
700 00 00 00 # pad
800 00 # reserved
900 1c # stats.length
1080 02 00 08 # stats.oxs_list[0].type_len - DURATION
1100 00 00 00 00 00 00 04 # stats.oxs_list[0].value
1280 02 02 08 # stats.oxs_list[1].type_len - IDLE_TIME (02 -> 0000 0010 -> oxs_field width 7, oxs_reserved width 1)
1300 00 00 00 00 00 00 06 # stats.oxs_list[1].value
1400 00 00 00 # stats.pad
15--java
16builder
17 .setXid(0x12345678)
18 .setFlags(ImmutableSet.<OFStatsReplyFlags>of(OFStatsReplyFlags.REPLY_MORE))
19 .setStats(
20 factory.buildStatV6()
21 .setOxsFields(OFOxsList
22 .of(factory.oxss().buildDuration().setValue(U64.of(4)).build(),
23 factory.oxss().buildIdleTime().setValue(U64.of(6)).build()))
24 .build());