+struct ofproto_stp_settings {
+ stp_identifier system_id;
+ uint16_t priority;
+ uint16_t hello_time;
+ uint16_t max_age;
+ uint16_t fwd_delay;
+};
+
+struct ofproto_stp_status {
+ bool enabled; /* If false, ignore other members. */
+ stp_identifier bridge_id;
+ stp_identifier designated_root;
+ int root_path_cost;
+};
+
+struct ofproto_port_stp_settings {
+ bool enable;
+ uint8_t port_num; /* In the range 1-255, inclusive. */
+ uint8_t priority;
+ uint16_t path_cost;
+};
+
+struct ofproto_port_stp_status {
+ bool enabled; /* If false, ignore other members. */
+ int port_id;
+ enum stp_state state;
+ unsigned int sec_in_state;
+ enum stp_role role;
+ int tx_count; /* Number of BPDUs transmitted. */
+ int rx_count; /* Number of valid BPDUs received. */
+ int error_count; /* Number of bad BPDUs received. */
+};
+
+struct ofproto_port_queue {
+ uint32_t queue; /* Queue ID. */
+ uint8_t dscp; /* DSCP bits (e.g. [0, 63]). */
+};
+