Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | --binary |
| 2 | 06 13 # version, type |
| 3 | 00 50 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 05 # multipart message type (OFPMP_QUEUE_STATS) |
| 6 | 00 01 # flags (OFPMPF_REPLY_MORE) |
| 7 | 00 00 00 00 # pad |
| 8 | 00 40 # length |
| 9 | 00 00 00 00 00 00 # pad |
| 10 | 00 00 00 01 # port_no |
| 11 | 00 00 00 01 # queue_id |
| 12 | 00 00 00 00 00 00 00 0a # tx_bytes |
| 13 | 00 00 00 00 00 00 00 07 # tx_packets |
| 14 | 00 00 00 00 00 00 00 01 # tx_errors |
| 15 | 00 00 00 03 # duration_sec |
| 16 | b2 d0 5e 00 # duration_nsec |
| 17 | ff ff # properties[0].type (OFPQSPT_EXPERIMENTER) |
| 18 | 00 10 # properties[0].length |
| 19 | 00 5c 16 c7 # properties[0].experimenter |
| 20 | 00 00 00 00 # properties[0].exp_type |
| 21 | 00 00 00 02 # properties[0].experimenter_data |
| 22 | |
| 23 | -- java |
| 24 | builder |
| 25 | .setXid(0x12345678) |
| 26 | .setFlags(ImmutableSet.<OFStatsReplyFlags>of(OFStatsReplyFlags.REPLY_MORE)) |
| 27 | .setEntries(ImmutableList.<OFQueueStatsEntry>of(factory.buildQueueStatsEntry().setPortNo(OFPort.of(1)) |
| 28 | .setQueueId(1) |
| 29 | .setTxBytes(U64.of(10)) |
| 30 | .setTxPackets(U64.of(7)) |
| 31 | .setTxErrors(U64.of(1)) |
| 32 | .setDurationSec(3) |
| 33 | .setDurationNsec(3000000000L) |
| 34 | .setProperties(ImmutableList.<OFQueueStatsProp>of(factory.buildQueueStatsPropBsn() |
| 35 | .setExperimenterData(new byte[] {0x0, 0x0, 0x0, 0x2}) |
| 36 | .build())).build())) |
| 37 | |
| 38 | .build() |