Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 06 0b # version, type |
| 3 | 00 48 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 14 # table_id |
| 6 | 02 # reason |
| 7 | 42 68 # priority |
| 8 | 00 05 # idle_timeout |
| 9 | 00 1e # hard_timeout |
| 10 | fe dc ba 98 76 54 32 10 # cookie |
| 11 | 00 01 # match.type |
| 12 | 00 10 # match.length |
| 13 | 80 00 01 08 # match.oxm_list[0].type_len - IN_PORT |
| 14 | 00 00 00 04 # match.oxm_list[0].value |
| 15 | 00 00 00 05 # match.oxm_list[0].mask |
| 16 | 00 00 # match.pad |
| 17 | 00 1c # stats.length |
| 18 | 80 02 00 08 # stats.oxs_list[0].type_len - DURATION |
| 19 | 00 00 00 00 00 00 00 04 # stats.oxs_list[0].value |
| 20 | 80 02 02 08 # stats.oxs_list[1].type_len - IDLE_TIME (02 -> 0000 0010 -> oxs_field width 7, oxs_reserved width 1) |
| 21 | 00 00 00 00 00 00 00 06 # stats.oxs_list[1].value |
| 22 | 00 00 00 00 # stats.pad |
| 23 | --java |
| 24 | builder |
| 25 | .setXid(0x12345678) |
| 26 | .setTableId(TableId.of(20)) |
| 27 | .setReason(OFFlowRemovedReason.DELETE) |
| 28 | .setPriority(17000) |
| 29 | .setIdleTimeout(5) |
| 30 | .setHardTimeout(30) |
| 31 | .setCookie(U64.parseHex("FEDCBA9876543210")) |
| 32 | .setMatch( |
| 33 | factory.buildMatch() |
| 34 | .setMasked(MatchField.IN_PORT, OFPort.of(4), OFPort.of(5)) |
| 35 | .build()) |
| 36 | .setStats( |
| 37 | factory.buildStatV6() |
| 38 | .setOxsFields(OFOxsList.of(factory.oxss().buildDuration().setValue(U64.of(4)).build(), |
| 39 | factory.oxss().buildIdleTime().setValue(U64.of(6)).build())) |
| 40 | .build()) |
| 41 | .build() |
| 42 | |
| 43 | |
| 44 | |