Rich Lane | 1ac4300 | 2013-12-03 12:56:35 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 04 04 # version, type |
| 3 | 00 34 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 5c 16 c7 # experimenter |
| 6 | 00 00 00 30 # subtype |
| 7 | 00 14 # table_id |
| 8 | 00 00 # pad |
| 9 | fe dc ba 98 76 54 32 10 ff ee cc bb aa 99 00 00 # checksum |
| 10 | ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 00 # checksum_mask |
| 11 | -- python |
| 12 | ofp.message.bsn_gentable_clear_request( |
| 13 | xid=0x12345678, |
| 14 | table_id=20, |
| 15 | checksum= 0xFEDCBA9876543210FFEECCBBAA990000, |
| 16 | checksum_mask=0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000) |
| 17 | -- java |
| 18 | builder.setXid(0x12345678) |
Andreas Wundsam | 7c15b17 | 2014-04-24 19:02:40 -0700 | [diff] [blame] | 19 | .setChecksum(U128.of(0xFEDCBA9876543210L, 0xFFEECCBBAA990000L)) |
| 20 | .setChecksumMask(U128.of(0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFF0000L)) |
Andreas Wundsam | d4b2269 | 2014-01-14 14:17:26 -0800 | [diff] [blame] | 21 | .setTableId(GenTableId.of(20)) |
Rich Lane | 1ac4300 | 2013-12-03 12:56:35 -0800 | [diff] [blame] | 22 | -- c |
| 23 | obj = of_bsn_gentable_clear_request_new(OF_VERSION_1_3); |
| 24 | of_bsn_gentable_clear_request_xid_set(obj, 0x12345678); |
| 25 | of_bsn_gentable_clear_request_table_id_set(obj, 20); |
| 26 | { |
| 27 | of_checksum_128_t checksum = { 0xFEDCBA9876543210L, 0xFFEECCBBAA990000L }; |
| 28 | of_bsn_gentable_clear_request_checksum_set(obj, checksum); |
| 29 | } |
| 30 | { |
| 31 | of_checksum_128_t checksum_mask = { 0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFF0000L }; |
| 32 | of_bsn_gentable_clear_request_checksum_mask_set(obj, checksum_mask); |
| 33 | } |