Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | --binary |
| 2 | 06 13 # version, type |
| 3 | 00 30 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 02 # multipart message type (OFPMP_AGGREGATE_STATS) |
| 6 | 00 01 # flags (OFPMPF_REPLY_MORE) |
| 7 | 00 00 00 00 # pad |
| 8 | 00 00 # reserved |
| 9 | 00 1c # stats.length |
| 10 | 80 02 00 08 # stats.oxs_list[0].type_len - DURATION |
| 11 | 00 00 00 00 00 00 00 04 # stats.oxs_list[0].value |
| 12 | 80 02 02 08 # stats.oxs_list[1].type_len - IDLE_TIME (02 -> 0000 0010 -> oxs_field width 7, oxs_reserved width 1) |
| 13 | 00 00 00 00 00 00 00 06 # stats.oxs_list[1].value |
| 14 | 00 00 00 00 # stats.pad |
| 15 | --java |
| 16 | builder |
| 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()); |