[ovs-dev] [PATCH 2/2] ipfix: Update Timestamp when flow updated

Ben Pfaff blp at ovn.org
Tue Jun 6 01:04:51 UTC 2017


From: Greg Rose <gvrose8192 at gmail.com>

Reported-by: Felix Konstantin Maurer <felix.maurer at comsys.rwth-aachen.de>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
[blp at ovn.org changed this to use ipfix_now()]
Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 ofproto/ofproto-dpif-ipfix.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ofproto/ofproto-dpif-ipfix.c b/ofproto/ofproto-dpif-ipfix.c
index 5589b0ea05e1..bc63b7b0294b 100644
--- a/ofproto/ofproto-dpif-ipfix.c
+++ b/ofproto/ofproto-dpif-ipfix.c
@@ -1643,6 +1643,7 @@ ipfix_cache_update(struct dpif_ipfix_exporter *exporter,
         ipfix_cache_aggregate_entries(entry, old_entry);
         free(entry);
         ipfix_update_stats(exporter, false, current_flows, sampled_pkt_type);
+        old_entry->flow_end_timestamp_usec = ipfix_now();
     }
 }
 
-- 
2.10.2



More information about the dev mailing list