blob: 7dbce0b1a6a9e5a4ecd7a419e8a6a726b6a981ab [file] [log] [blame]
Rob Vaterlausca1978e2013-10-01 20:47:03 -07001-- binary
204 01 # version / type
300 0f # length
412 34 56 78 # xid
500 04 # err_type
600 08 # code
761 62 63 # data
8-- python
9ofp.message.bad_match_error_msg(
10 xid=0x12345678,
11 code=ofp.OFPBMC_BAD_MASK,
12 data="abc")
13-- c
14obj = of_bad_match_error_msg_new(OF_VERSION_1_3);
15of_flow_add_xid_set(obj, 0x12345678);
16of_bad_match_error_msg_code_set(obj, OF_MATCH_FAILED_BAD_MASK_BY_VERSION(OF_VERSION_1_3));
17of_octets_t data = { .bytes=3, .data=(uint8_t *)"\x61\x62\x63" };
18of_bad_match_error_msg_data_set(obj, &data);
19-- java
20builder.setXid(0x12345678)
21 .setCode(OFBadMatchCode.BAD_MASK)
22 .setData(new byte[] { 0x61, 0x62, 0x63 });