Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 06 21 # version, type |
| 3 | 00 28 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 00 00 01 # bundle_id |
| 6 | 00 00 # type (OFPBCT_OPEN_REQUEST) |
| 7 | 00 01 # flags (OFPBF_ATOMIC) |
| 8 | 00 01 # properties[0].type (OFPBPT_TIME) |
| 9 | 00 18 # properties[0].length |
| 10 | 00 00 00 00 # properties[0].pad |
| 11 | 00 00 00 00 00 00 00 01 # properties[0].ofp_time.seconds |
| 12 | 3b 9a ca 00 # properties[0].ofp_time.nanoseconds |
| 13 | 00 00 00 00 # properties[0].ofp_time.pad |
| 14 | -- java |
| 15 | builder |
| 16 | .setXid(0x12345678) |
| 17 | .setBundleId(BundleId.of(1)) |
| 18 | .setBundleCtrlType(OFBundleCtrlType.OPEN_REQUEST) |
| 19 | .setFlags(ImmutableSet.<OFBundleFlags>of(OFBundleFlags.ATOMIC)) |
| 20 | .setProperties(ImmutableList.<OFBundleProp>of(factory.buildBundlePropTime().setScheduledTime(ImmutableList.<OFTime>of(factory.buildTime().setSeconds(U64.of(1)).setNanoseconds(1000000000L).build())).build())) |
| 21 | .build() |