blob: 853d463d7f40e94b829d0f6f855a64212b2fc348 [file] [log] [blame]
Rich Lane1ac43002013-12-03 12:56:35 -08001-- binary
204 04 # version, type
300 34 # length
412 34 56 78 # xid
500 5c 16 c7 # experimenter
600 00 00 30 # subtype
700 14 # table_id
800 00 # pad
9fe dc ba 98 76 54 32 10 ff ee cc bb aa 99 00 00 # checksum
10ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 00 # checksum_mask
11-- python
12ofp.message.bsn_gentable_clear_request(
13 xid=0x12345678,
14 table_id=20,
15 checksum= 0xFEDCBA9876543210FFEECCBBAA990000,
16 checksum_mask=0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000)
17-- java
18builder.setXid(0x12345678)
Andreas Wundsam7c15b172014-04-24 19:02:40 -070019 .setChecksum(U128.of(0xFEDCBA9876543210L, 0xFFEECCBBAA990000L))
20 .setChecksumMask(U128.of(0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFF0000L))
Andreas Wundsamd4b22692014-01-14 14:17:26 -080021 .setTableId(GenTableId.of(20))
Rich Lane1ac43002013-12-03 12:56:35 -080022-- c
23obj = of_bsn_gentable_clear_request_new(OF_VERSION_1_3);
24of_bsn_gentable_clear_request_xid_set(obj, 0x12345678);
25of_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}