[ovs-dev] [PATCH 1/2] bridge: Properly read NetFlow parameters.

Jesse Gross jesse at nicira.com
Wed Jan 27 20:19:40 UTC 2010


When reading the NetFlow engine type and ID from the config database
we weren't deferencing the variables.
---
 vswitchd/bridge.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index a09f343..726d759 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -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;
-- 
1.6.3.3





More information about the dev mailing list