Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 06 13 # version, type |
| 3 | 00 58 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 06 # multipart message type (OFPMP_GROUP_STATS) |
| 6 | 00 01 # flags (OFPMPF_REPLY_MORE) |
| 7 | 00 00 00 00 # pad |
| 8 | 00 48 # length |
| 9 | 00 00 # pad |
| 10 | 00 00 00 01 # group_id |
| 11 | 00 00 00 01 # ref_count |
| 12 | 00 00 00 00 # pad |
| 13 | 00 00 00 00 00 00 00 07 # packet_count |
| 14 | 00 00 00 00 00 00 00 12 # byte_count |
| 15 | 00 00 00 03 # duration_sec |
| 16 | b2 d0 5e 00 # duration_nsec |
| 17 | 00 00 00 00 00 00 00 07 # bucket_counter[0].packet_count |
| 18 | 00 00 00 00 00 00 00 0c # bucket_counter[0].byte_count |
| 19 | 00 00 00 00 00 00 00 03 # bucket_counter[1].packet_count |
| 20 | 00 00 00 00 00 00 00 0a # bucket_counter[1].byte_count |
| 21 | -- java |
| 22 | builder |
| 23 | .setXid(0x12345678) |
| 24 | .setFlags(ImmutableSet.<OFStatsReplyFlags>of(OFStatsReplyFlags.REPLY_MORE)) |
| 25 | .setEntries(ImmutableList.<OFGroupStatsEntry>of(factory.buildGroupStatsEntry().setGroup(OFGroup.of(1)) |
| 26 | .setRefCount(1) |
| 27 | .setPacketCount(U64.of(7)) |
| 28 | .setByteCount(U64.of(18)) |
| 29 | .setDurationSec(3) |
| 30 | .setDurationNsec(3000000000L) |
| 31 | .setBucketStats(ImmutableList.<OFBucketCounter>of( |
| 32 | factory.buildBucketCounter().setPacketCount(U64.of(7)) |
| 33 | .setByteCount(U64.of(12)) |
| 34 | .build(), |
| 35 | factory.buildBucketCounter().setPacketCount(U64.of(3)) |
| 36 | .setByteCount(U64.of(10)) |
| 37 | .build())) |
| 38 | .build())) |
| 39 | |
| 40 | .build() |