diff options
author | Ben Pfaff <blp@nicira.com> | 2013-04-17 13:02:15 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-07-08 14:52:43 -0700 |
commit | 2334285719dffc1f193a2fdf0e5f7f54062348da (patch) | |
tree | 4b175085a06a79902bdeb78f6def56862ebf0133 /lib/learn.c | |
parent | 3432cb4e5659e3b4da9a0bc5587b473fc2cc6bc8 (diff) | |
download | openvswitch-2334285719dffc1f193a2fdf0e5f7f54062348da.tar.gz |
ofp-util: Add 'modify_cookie' to struct ofputil_flow_mod, to support OF1.1.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/learn.c')
-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 d0a4796c9..49d9efdba 100644 --- a/lib/learn.c +++ b/lib/learn.c @@ -303,6 +303,7 @@ learn_execute(const struct ofpact_learn *learn, const struct flow *flow, fm->cookie = htonll(0); fm->cookie_mask = htonll(0); fm->new_cookie = htonll(learn->cookie); + fm->modify_cookie = fm->new_cookie != htonll(UINT64_MAX); fm->table_id = learn->table_id; fm->command = OFPFC_MODIFY_STRICT; fm->idle_timeout = learn->idle_timeout; |