Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 06 1e # version, type |
| 3 | 00 28 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 00 00 03 # role (OFPCR_ROLE_SLAVE) |
| 6 | 00 # reason (OFPCRR_MASTER_REQUEST) |
| 7 | 00 00 00 # pad |
| 8 | 00 00 00 00 00 00 00 01 # generation_id |
| 9 | ff ff # properties[0].type (OFPRPT_EXPERIMENTER) |
| 10 | 00 10 # properties[0].length |
| 11 | 00 5c 16 c7 # properties[0].experimenter |
| 12 | 00 00 00 37 # properties[0].exp_type |
| 13 | 00 00 00 00 # properties[0]exp_data |
| 14 | -- java |
| 15 | builder |
| 16 | .setXid(0x12345678) |
| 17 | .setRole(OFControllerRole.ROLE_SLAVE) |
| 18 | .setReason(OFControllerRoleReason.MASTER_REQUEST) |
| 19 | .setGenerationId(U64.of(1)) |
| 20 | .setProperties(ImmutableList.<OFRoleProp>of(factory.buildRolePropBsn().setExperimenterData(new byte[] {0x0, 0x0, 0x0, 0x0}).build())) |
| 21 | .build() |