git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
openvswitch/types.h: New macros OVS_BE16_MAX, OVS_BE32_MAX, OVS_BE64_MAX.
[sliver-openvswitch.git]
/
lib
/
learn.c
diff --git
a/lib/learn.c
b/lib/learn.c
index
68d95cb
..
61799c9
100644
(file)
--- a/
lib/learn.c
+++ b/
lib/learn.c
@@
-314,7
+314,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->cookie = htonll(0);
fm->cookie_mask = htonll(0);
fm->new_cookie = htonll(learn->cookie);
- fm->modify_cookie = fm->new_cookie !=
htonll(UINT64_MAX)
;
+ fm->modify_cookie = fm->new_cookie !=
OVS_BE64_MAX
;
fm->table_id = learn->table_id;
fm->command = OFPFC_MODIFY_STRICT;
fm->idle_timeout = learn->idle_timeout;
fm->table_id = learn->table_id;
fm->command = OFPFC_MODIFY_STRICT;
fm->idle_timeout = learn->idle_timeout;