aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/snat/snat.c
diff options
context:
space:
mode:
authorMartin <magalik@cisco.com>2017-03-03 05:35:41 -0800
committerOle Trøan <otroan@employees.org>2017-03-06 11:55:24 +0000
commita1cca7fab081fe038bcd4fe150f7997fa3ae8b26 (patch)
tree484c8495d8c12e37cb97d06d9277970dfb71e05d /src/plugins/snat/snat.c
parent99617f7a2649674dff35e8bfa3d9b84244236778 (diff)
SNAT: session dump last heard type fix
Change-Id: I3323f7d4bb5da4bc2b19637964e5467ac92680cd Signed-off-by: Martin <magalik@cisco.com>
Diffstat (limited to 'src/plugins/snat/snat.c')
-rw-r--r--src/plugins/snat/snat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/snat/snat.c b/src/plugins/snat/snat.c
index 0ec20ef7..9712a6cb 100644
--- a/src/plugins/snat/snat.c
+++ b/src/plugins/snat/snat.c
@@ -1481,8 +1481,8 @@ send_snat_user_session_details
rmp->inside_port = s->in2out.port;
rmp->protocol = ntohs(snat_proto_to_ip_proto(s->in2out.protocol));
rmp->is_static = s->flags & SNAT_SESSION_FLAG_STATIC_MAPPING ? 1 : 0;
- rmp->last_heard = ntohl(s->last_heard);
- rmp->total_bytes = ntohl(s->total_bytes);
+ rmp->last_heard = clib_host_to_net_u64((u64)s->last_heard);
+ rmp->total_bytes = clib_host_to_net_u64(s->total_bytes);
rmp->total_pkts = ntohl(s->total_pkts);
rmp->context = context;