+struct ofproto_sflow_options {
+ struct sset targets;
+ uint32_t sampling_rate;
+ uint32_t polling_interval;
+ uint32_t header_len;
+ uint32_t sub_id;
+ char *agent_device;
+ char *control_ip;
+};
+
+/* How the switch should act if the controller cannot be contacted. */
+enum ofproto_fail_mode {
+ OFPROTO_FAIL_SECURE, /* Preserve flow table. */
+ OFPROTO_FAIL_STANDALONE /* Act as a standalone switch. */
+};
+
+enum ofproto_band {
+ OFPROTO_IN_BAND, /* In-band connection to controller. */
+ OFPROTO_OUT_OF_BAND /* Out-of-band connection to controller. */
+};
+
+struct ofproto_controller {
+ char *target; /* e.g. "tcp:127.0.0.1" */
+ int max_backoff; /* Maximum reconnection backoff, in seconds. */
+ int probe_interval; /* Max idle time before probing, in seconds. */
+ enum ofproto_band band; /* In-band or out-of-band? */
+
+ /* OpenFlow packet-in rate-limiting. */
+ int rate_limit; /* Max packet-in rate in packets per second. */
+ int burst_limit; /* Limit on accumulating packet credits. */
+};
+
+#define DEFAULT_MFR_DESC "Nicira Networks, Inc."
+#define DEFAULT_HW_DESC "Open vSwitch"
+#define DEFAULT_SW_DESC VERSION BUILDNR
+#define DEFAULT_SERIAL_DESC "None"
+#define DEFAULT_DP_DESC "None"
+