aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-05-02 00:59:33 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2018-05-03 19:09:47 +0000
commit72c419cc9e2e4749bed64c45cf1bca318a16ea70 (patch)
treef6f0e2c1f827ebf0f7c5373857df3ac8309a0367 /src/plugins/nat
parent42ae29a2fe9b12bbbc0c6495b2077252545c9cb9 (diff)
NAT44: fix VAT nat44_user_session_details
Change-Id: If379247f0574fbfcca39e752684bf6c81b95187b Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat')
-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)