[ovs-dev] [PATCH 1/2] odp-util: Print tunnel ids in host-order.
Justin Pettit
jpettit at nicira.com
Wed Mar 23 00:09:33 UTC 2011
Suggested-by: Pankaj Thakkar <thakkar at nicira.com>
---
lib/odp-util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/odp-util.c b/lib/odp-util.c
index 973490d..e82006b 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -256,7 +256,7 @@ format_odp_key_attr(const struct nlattr *a, struct ds *ds)
switch (nl_attr_type(a)) {
case ODP_KEY_ATTR_TUN_ID:
- ds_put_format(ds, "tun_id(%#"PRIx64")", nl_attr_get_be64(a));
+ ds_put_format(ds, "tun_id(%#"PRIx64")", ntohll(nl_attr_get_be64(a)));
break;
case ODP_KEY_ATTR_IN_PORT:
--
1.7.1
More information about the dev
mailing list