Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 06 12 # version, type |
| 3 | 00 40 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 02 # multipart message type (OFPMP_AGGREGATE_STATS) |
| 6 | 00 01 # flags |
| 7 | 00 00 00 00 # pad |
| 8 | ff # tableId |
| 9 | 00 00 00 # pad |
| 10 | 00 00 00 04 # out_port |
| 11 | 00 00 00 01 # out_group |
| 12 | 00 00 00 00 # pad |
| 13 | fe dc ba 98 76 54 32 10 # cookie |
| 14 | ff 00 ff 00 ff 00 ff 00 # cookie_maskk |
| 15 | 00 01 # match.type |
| 16 | 00 10 # match.length |
| 17 | 80 00 01 08 # match.oxm_list[0].type_len - IN_PORT |
| 18 | 00 00 00 04 # match.oxm_list[0].value |
| 19 | 00 00 00 05 # match.oxm_list[0].mask |
| 20 | -- java |
| 21 | builder |
| 22 | .setXid(0x12345678) |
| 23 | .setFlags(ImmutableSet.<OFStatsRequestFlags>of(OFStatsRequestFlags.REQ_MORE)) |
| 24 | .setTableId(TableId.ALL) |
| 25 | .setOutPort(OFPort.of(4)) |
| 26 | .setOutGroup(OFGroup.of(1)) |
| 27 | .setCookie(U64.parseHex("FEDCBA9876543210")) |
| 28 | .setCookieMask(U64.parseHex("FF00FF00FF00FF00")) |
| 29 | .setMatch( |
| 30 | factory.buildMatch() |
| 31 | .setMasked(MatchField.IN_PORT, OFPort.of(4), OFPort.of(5)) |
| 32 | .build()) |
| 33 | .build() |