Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 06 12 # version, type |
| 3 | 00 60 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 13 # multipart message type (OFPMP_BUNDLE_FEATURES) |
| 6 | 00 01 # flags |
| 7 | 00 00 00 00 # pad |
| 8 | 00 00 00 01 # feature_request_flags (OFPBF_TIMESTAMP) |
| 9 | 00 00 00 00 # pad |
| 10 | 00 01 # properties[0].type (OFPTMPBF_TIME_CAPABILITY) |
| 11 | 00 48 # properties[0].length |
| 12 | 00 00 00 00 # properties[0].pad |
| 13 | 00 00 00 00 00 00 00 03 # properties[0].sched_accuracy.seconds |
| 14 | b2 d0 5e 00 # properties[0].sched_accuracy.nanoseconds |
| 15 | 00 00 00 00 # properties[0].sched_accuracy.pad |
| 16 | 00 00 00 00 00 00 00 03 # properties[0].sched_max_future.seconds |
| 17 | b2 d0 5e 00 # properties[0].sched_max_future.nanoseconds |
| 18 | 00 00 00 00 # properties[0].sched_max_future.pad |
| 19 | 00 00 00 00 00 00 00 03 # properties[0].sched_max_past.seconds |
| 20 | b2 d0 5e 00 # properties[0].sched_max_past.nanoseconds |
| 21 | 00 00 00 00 # properties[0].sched_max_past.pad |
| 22 | 00 00 00 00 00 00 00 03 # properties[0].timestamp.seconds |
| 23 | b2 d0 5e 00 # properties[0].timestamp;.nanoseconds |
| 24 | 00 00 00 00 # properties[0].timestamp;.pad |
| 25 | -- java |
| 26 | builder |
| 27 | .setXid(0x12345678) |
| 28 | .setFlags(ImmutableSet.<OFStatsRequestFlags>of(OFStatsRequestFlags.REQ_MORE)) |
| 29 | .setFeatureRequestFlags(ImmutableSet.<OFBundleFeatureFlags>of(OFBundleFeatureFlags.TIMESTAMP)) |
| 30 | .setProperties(ImmutableList.<OFBundleFeaturesProp>of(factory.buildBundleFeaturesPropTime().setSchedAccuracy(factory.buildTime().setSeconds(U64.of(3)).setNanoseconds(3000000000L).build()) |
| 31 | .setSchedMaxFuture(factory.buildTime().setSeconds(U64.of(3)).setNanoseconds(3000000000L).build()) |
| 32 | .setSchedMaxPast(factory.buildTime().setSeconds(U64.of(3)).setNanoseconds(3000000000L).build()) |
| 33 | .setTimestamp(factory.buildTime().setSeconds(U64.of(3)).setNanoseconds(3000000000L).build()) |
| 34 | .build())) |
| 35 | .build() |
| 36 | |
| 37 | |