blob: 71e17b101493ed6bdbee2f18104cca7e21776c42 [file] [log] [blame]
Rich Lanec9fc57d2013-05-16 16:39:12 -07001-- binary
204 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 2A 02 # match.oxm_list[0].type_len
1300 01 # match.oxm_list[0].value
1480 00 01 08 # match.oxm_list[1].type_len
1500 00 00 04 # match.oxm_list[1].value
1600 00 00 05 # match.oxm_list[1].mask
1700 00 # match.pad
1800 00 # pad
1961 62 63 # data
20-- python
21ofp.message.packet_in(
22 xid=0x12345678,
23 buffer_id=100,
24 total_len=17000,
25 reason=ofp.OFPR_ACTION,
26 table_id=20,
27 cookie=0xFEDCBA9876543210,
28 match=ofp.match(oxm_list=[
29 ofp.oxm.arp_op(value=1),
30 ofp.oxm.in_port_masked(value=4, value_mask=5)]),
31 data="abc")
Andreas Wundsam6cd99e52013-08-02 22:27:23 -070032-- java
33builder
34 .setXid(0x12345678)
35 .setBufferId(100)
36 .setTotalLen(17000)
37 .setReason(OFPacketInReason.ACTION)
38 .setTableId((byte) 20)
39 .setCookie(U64.parseHex("FEDCBA9876543210"))
40 .setMatch(
41 factory.createMatchV3Builder().setOxmList(
42 ImmutableList.of(
43 factory.createOxmArpOpBuilder().setValue(1).getMessage(),
44 factory.createOxmInPortMaskedBuilder().setValue(OFPort.of(4)).setValueMask(OFPort.of(5)).getMessage()
45 )
46 ).getMessage()
47 )
48 .setData(new byte[] { 97, 98, 99 } );
49