mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +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:
@@ -2428,7 +2428,7 @@ ofpact_format(const struct ofpact *a, struct ds *s)
|
||||
ovs_instruction_name_from_type(
|
||||
OVSINST_OFPIT11_WRITE_METADATA),
|
||||
ntohll(metadata->metadata));
|
||||
if (metadata->mask != htonll(UINT64_MAX)) {
|
||||
if (metadata->mask != OVS_BE64_MAX) {
|
||||
ds_put_format(s, "/%#"PRIx64, ntohll(metadata->mask));
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user