dpif-linux: Avoid segfault on netdev_get_stats() without kernel module.
[openvswitch] / lib / odp-util.c
index 973490dc8ef14003ae55374f8ae7b1cca278ee58..e82006bc797dbd04c4cda0a9c9ffe75cbb3ecef5 100644 (file)
@@ -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: