Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 04 00 # version, type |
| 3 | 00 20 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 01 # elements[0].type |
| 6 | 00 0c # elements[0].length |
| 7 | 00 00 00 01 # elements[0].bitmaps[0] |
| 8 | 00 00 00 02 # elements[0].bitmaps[1] |
| 9 | 00 01 # elements[1].type |
| 10 | 00 0c # elements[1].length |
| 11 | 00 00 00 03 # elements[1].bitmaps[0] |
| 12 | 00 00 00 04 # elements[1].bitmaps[1] |
| 13 | -- python |
| 14 | ofp.message.hello( |
| 15 | xid=0x12345678, |
| 16 | elements=[ |
| 17 | ofp.hello_elem_versionbitmap( |
| 18 | bitmaps=[ofp.uint32(1), ofp.uint32(2)]), |
| 19 | ofp.hello_elem_versionbitmap( |
| 20 | bitmaps=[ofp.uint32(3), ofp.uint32(4)])]) |