blob: 701376edb00306556ef2ff37e5c74602c2804c0d [file] [log] [blame]
Rich Lane9a3f1fd2013-05-10 16:29:17 -07001-- binary
201 02 # version / type
300 0b # length
412 34 56 78 # xid
561 62 01 # data
6-- python
7ofp.message.echo_request(xid=0x12345678, data="ab\x01")
8-- python pretty-printer
9echo_request { xid = 0x12345678, data = 'ab\x01' }
Rich Laneccae0312013-07-21 23:34:13 -070010-- c
11obj = of_echo_request_new(OF_VERSION_1_0);
12of_echo_request_xid_set(obj, 0x12345678);
13{
14 of_octets_t data = { .data=(uint8_t *)"ab\x01", .bytes=3 };
15 of_echo_request_data_set(obj, &data);
16}