From 602ef4b21c53280c0e278c530fb030fc64fec9d3 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 22 Mar 2011 16:45:03 -0700 Subject: [PATCH] odp-util: Print tunnel ids in host-order. Suggested-by: Pankaj Thakkar --- lib/odp-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index 973490dc..e82006bc 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: -- 2.30.2