bridge: Properly read NetFlow parameters.
authorJesse Gross <jesse@nicira.com>
Wed, 27 Jan 2010 20:08:02 +0000 (15:08 -0500)
committerJesse Gross <jesse@nicira.com>
Wed, 27 Jan 2010 20:31:19 +0000 (15:31 -0500)
When reading the NetFlow engine type and ID from the config database
we weren't dereferencing the variables.

vswitchd/bridge.c

index a09f343..726d759 100644 (file)
@@ -699,10 +699,10 @@ bridge_reconfigure(const struct ovsrec_open_vswitch *ovs_cfg)
 
             dpif_get_netflow_ids(br->dpif, &opts.engine_type, &opts.engine_id);
             if (nf_cfg->engine_type) {
-                opts.engine_type = nf_cfg->engine_type;
+                opts.engine_type = *nf_cfg->engine_type;
             }
             if (nf_cfg->engine_id) {
-                opts.engine_id = nf_cfg->engine_id;
+                opts.engine_id = *nf_cfg->engine_id;
             }
 
             opts.active_timeout = nf_cfg->active_timeout;