Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 06 13 # version, type |
| 3 | 00 48 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 11 # multipart message type (OFPMP_FLOW_LIGHTWEIGHT(_STATS)) |
| 6 | 00 01 # flags (REPLY_MORE) |
| 7 | 00 00 00 00 # pad |
| 8 | 00 38 # length |
| 9 | 00 00 # pad |
| 10 | 01 # table_id |
| 11 | 00 # reason (OFPFSR_STATS_REQUEST) |
| 12 | 00 01 # priority |
| 13 | 00 01 # match.type |
| 14 | 00 10 # match.length |
| 15 | 80 00 01 08 # match.oxm_list[0].type_len - IN_PORT |
| 16 | 00 00 00 04 # match.oxm_list[0].value |
| 17 | 00 00 00 05 # match.oxm_list[0].mask |
| 18 | 00 00 # match.pad |
| 19 | 00 1c # stats.length |
| 20 | 80 02 00 08 # stats.oxs_list[0].type_len - DURATION |
| 21 | 00 00 00 00 00 00 00 04 # stats.oxs_list[0].value |
| 22 | 80 02 02 08 # stats.oxs_list[1].type_len - IDLE_TIME (02 -> 0000 0010 -> oxs_field width 7, oxs_reserved width 1) |
| 23 | 00 00 00 00 00 00 00 06 # stats.oxs_list[1].value |
| 24 | 00 00 00 00 # stats.pad |
| 25 | -- java |
| 26 | builder |
| 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(); |