From: Martin Date: Fri, 3 Mar 2017 13:35:41 +0000 (-0800) Subject: SNAT: session dump last heard type fix X-Git-Tag: v17.04-rc1~122 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=a1cca7fab081fe038bcd4fe150f7997fa3ae8b26;p=vpp.git SNAT: session dump last heard type fix Change-Id: I3323f7d4bb5da4bc2b19637964e5467ac92680cd Signed-off-by: Martin --- diff --git a/src/plugins/snat/snat.api b/src/plugins/snat/snat.api index 3462a8d2b6c..052d30f6239 100644 --- a/src/plugins/snat/snat.api +++ b/src/plugins/snat/snat.api @@ -413,7 +413,7 @@ define snat_user_session_details { u16 inside_port; u16 protocol; u8 is_static; - f64 last_heard; + u64 last_heard; u64 total_bytes; u32 total_pkts; }; diff --git a/src/plugins/snat/snat.c b/src/plugins/snat/snat.c index 0ec20ef7909..9712a6cb8eb 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;