diff options
author | Ben Pfaff <blp@nicira.com> | 2012-03-20 11:32:08 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-03-21 09:09:40 -0700 |
commit | ccd3cf44eb28dc109f07cf329a8bda7146821355 (patch) | |
tree | 5169997005c3552dcb2ae93983fb56d0e6ce6083 /lib | |
parent | 8b7f5fb9031243bb4e969737c6a7654749932690 (diff) |
learn: Initialize cookie_mask in constructed flow_mod.
Otherwise the "learn" action may not correctly set the cookie in flows that
it creates.
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/learn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/learn.c b/lib/learn.c index 9d97cb35..284a6cdd 100644 --- a/lib/learn.c +++ b/lib/learn.c @@ -190,6 +190,7 @@ learn_execute(const struct nx_action_learn *learn, const struct flow *flow, cls_rule_init_catchall(&fm->cr, ntohs(learn->priority)); fm->cookie = learn->cookie; + fm->cookie_mask = htonll(UINT64_MAX); fm->table_id = learn->table_id; fm->command = OFPFC_MODIFY_STRICT; fm->idle_timeout = ntohs(learn->idle_timeout); |