mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
openvswitch/types.h: New macros OVS_BE16_MAX, OVS_BE32_MAX, OVS_BE64_MAX.
These seem slightly nicer than e.g. htons(UINT16_MAX). Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -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->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;
|
||||
|
Reference in New Issue
Block a user