Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | --binary |
| 2 | 06 0a # version, type |
| 3 | 00 35 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 00 00 64 # buffer_id |
| 6 | 42 68 # total_len |
| 7 | 01 # reason |
| 8 | 14 # table_id |
| 9 | fe dc ba 98 76 54 32 10 # cookie |
| 10 | 00 01 # match.type |
| 11 | 00 16 # match.length |
| 12 | 80 00 01 08 # match.oxm_list[0].type_len - Input Port |
| 13 | 00 00 00 04 # match.oxm_list[0].value |
| 14 | 00 00 00 05 # match.oxm_list[0].mask |
| 15 | 80 00 2A 02 # match.oxm_list[1].type_len - ARP OpCode |
| 16 | 00 01 # match.oxm_list[1].value |
| 17 | 00 00 # match.pad |
| 18 | 00 00 # pad |
| 19 | 61 62 63 # data |
| 20 | -- java |
| 21 | builder |
| 22 | .setXid(0x12345678) |
| 23 | .setBufferId(OFBufferId.of(100)) |
| 24 | .setTotalLen(17000) |
| 25 | .setReason(OFPacketInReason.ACTION) |
| 26 | .setTableId(TableId.of(20)) |
| 27 | .setCookie(U64.parseHex("FEDCBA9876543210")) |
| 28 | .setMatch( |
| 29 | factory.buildMatchV3() |
| 30 | .setMasked(MatchField.IN_PORT, OFPort.of(4), OFPort.of(5)) |
| 31 | .setExact(MatchField.ARP_OP, ArpOpcode.REQUEST) |
| 32 | .build()) |
| 33 | .setData(new byte[] { 97, 98, 99 } ); |