Brian O'Connor | 58a73e3 | 2015-05-28 11:51:27 -0700 | [diff] [blame] | 1 | #version 4 |
| 2 | |
| 3 | struct of_calient_stats_request : of_experimenter_stats_request { |
| 4 | uint8_t version; |
| 5 | uint8_t type == 18; |
| 6 | uint16_t length; |
| 7 | uint32_t xid; |
| 8 | uint16_t stats_type == 0xffff; |
| 9 | enum ofp_stats_request_flags flags; |
| 10 | pad(4); |
| 11 | uint32_t experimenter == 0x0080F958; |
| 12 | uint32_t subtype == ?; |
| 13 | }; |
| 14 | |
| 15 | struct of_calient_stats_reply : of_experimenter_stats_reply { |
| 16 | uint8_t version; |
| 17 | uint8_t type == 19; |
| 18 | uint16_t length; |
| 19 | uint32_t xid; |
| 20 | uint16_t stats_type == 0xffff; |
| 21 | enum ofp_stats_reply_flags flags; |
| 22 | pad(4); |
| 23 | uint32_t experimenter == 0x0080F958; |
| 24 | uint32_t subtype == ?; |
| 25 | }; |
| 26 | |
| 27 | enum ofp_calient_ocs_alarm(wire_type=uint8_t, bitmask=True){ |
Aneesha Pailla | 682a821 | 2016-02-03 11:30:55 -0800 | [diff] [blame] | 28 | OFPOCSALM_UNKNOWN=0, /* level is not relevant, or s/w bug */ |
| 29 | OFPOCSALM_NORMAL = 1, /* Clear- no alarm */ |
| 30 | OFPOCSALM_MINOR = 2, /* loss is greater than 5.25 */ |
| 31 | OFPOCSALM_MAJOR = 3, /* loss is greater than 7.25 */ |
| 32 | OFPOCSALM_CRITICAL = 4, /* loss is greater than 10.25 */ |
Brian O'Connor | 58a73e3 | 2015-05-28 11:51:27 -0700 | [diff] [blame] | 33 | }; |