blob: bc41855b119f16d5ded97c6c737b47afd6842f48 [file] [log] [blame]
Murat Parlakisikf95672c2016-12-05 00:53:17 -08001--binary
206 0a # version, type
300 35 # length
412 34 56 78 # xid
500 00 00 64 # buffer_id
642 68 # total_len
701 # reason
814 # table_id
9fe dc ba 98 76 54 32 10 # cookie
1000 01 # match.type
1100 16 # match.length
1280 00 01 08 # match.oxm_list[0].type_len - Input Port
1300 00 00 04 # match.oxm_list[0].value
1400 00 00 05 # match.oxm_list[0].mask
1580 00 2A 02 # match.oxm_list[1].type_len - ARP OpCode
1600 01 # match.oxm_list[1].value
1700 00 # match.pad
1800 00 # pad
1961 62 63 # data
20-- java
21builder
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 } );