+struct ofproto_ipfix_bridge_exporter_options {
+ struct sset targets;
+ uint32_t sampling_rate;
+ uint32_t obs_domain_id; /* Bridge-wide Observation Domain ID. */
+ uint32_t obs_point_id; /* Bridge-wide Observation Point ID. */
+ uint32_t cache_active_timeout;
+ uint32_t cache_max_flows;
+ bool enable_tunnel_sampling;
+ bool enable_input_sampling;
+ bool enable_output_sampling;
+};
+
+struct ofproto_ipfix_flow_exporter_options {
+ uint32_t collector_set_id;
+ struct sset targets;
+ uint32_t cache_active_timeout;
+ uint32_t cache_max_flows;
+};
+
+struct ofproto_rstp_status {
+ bool enabled; /* If false, ignore other members. */
+ rstp_identifier root_id;
+ rstp_identifier bridge_id;
+ rstp_identifier designated_id;
+ uint32_t root_path_cost;
+ uint16_t designated_port_id;
+ uint16_t bridge_port_id;
+};
+
+struct ofproto_rstp_settings {
+ rstp_identifier address;
+ uint16_t priority;
+ uint32_t ageing_time;
+ enum rstp_force_protocol_version force_protocol_version;
+ uint16_t bridge_forward_delay;
+ uint16_t bridge_max_age;
+ uint16_t transmit_hold_count;
+};
+
+struct ofproto_port_rstp_status {
+ bool enabled; /* If false, ignore other members. */
+ uint16_t port_id;
+ enum rstp_port_role role;
+ enum rstp_state state;
+ rstp_identifier designated_bridge_id;
+ uint16_t designated_port_id;
+ uint32_t designated_path_cost;
+ int tx_count; /* Number of BPDUs transmitted. */
+ int rx_count; /* Number of valid BPDUs received. */
+ int error_count; /* Number of bad BPDUs received. */
+ int uptime;
+};
+
+struct ofproto_port_rstp_settings {
+ bool enable;
+ uint16_t port_num; /* In the range 1-4095, inclusive. */
+ uint8_t priority;
+ uint32_t path_cost;
+ bool admin_edge_port;
+ bool auto_edge;
+ bool mcheck;
+ uint8_t admin_p2p_mac_state;
+ bool admin_port_state;
+};
+
+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;
+};
+
+struct ofproto_port_stp_stats {
+ bool enabled; /* If false, ignore other members. */
+ 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]). */
+};
+
+struct ofproto_mcast_snooping_settings {
+ bool flood_unreg; /* If true, flood unregistered packets to all
+ all ports. If false, send only to ports
+ connected to multicast routers. */
+ unsigned int idle_time; /* Entry is removed after the idle time
+ * in seconds. */
+ unsigned int max_entries; /* Size of the multicast snooping table. */
+};
+
+struct ofproto_mcast_snooping_port_settings {
+ bool flood; /* If true, flood multicast traffic */
+ bool flood_reports; /* If true, flood Reports traffic */
+};
+