summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/nat/nat_test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/nat/nat_test.c b/src/plugins/nat/nat_test.c
index f2575cea88d..c5a96d3f7db 100644
--- a/src/plugins/nat/nat_test.c
+++ b/src/plugins/nat/nat_test.c
@@ -670,11 +670,12 @@ static void vl_api_nat44_user_session_details_t_handler
vat_main_t *vam = sm->vat_main;
fformat(vam->ofp, "%s session %U:%d to %U:%d protocol id %d "
- "total packets %d total bytes %d\n",
+ "total packets %d total bytes %lld\n",
mp->is_static ? "static" : "dynamic",
- format_ip4_address, mp->inside_ip_address, ntohl(mp->inside_port),
- format_ip4_address, mp->outside_ip_address, ntohl(mp->outside_port),
- ntohl(mp->protocol), ntohl(mp->total_pkts), ntohl(mp->total_bytes));
+ format_ip4_address, mp->inside_ip_address, ntohs(mp->inside_port),
+ format_ip4_address, mp->outside_ip_address, ntohs(mp->outside_port),
+ ntohs(mp->protocol), ntohl(mp->total_pkts),
+ clib_net_to_host_u64(mp->total_bytes));
}
static int api_nat44_user_session_dump(vat_main_t * vam)