From 338fa76dbb7d6c0742dc5043cc4245979ea22e62 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 10 Apr 2014 10:18:42 -0700 Subject: [PATCH] netflow: Correctly track flow creation time. 'created' is supposed to be the time the flow was created, but it was getting reset to zero on every expiration, causing the flow start time to be wonky after the first active expiration on a flow. Reported-by: Lior Neudorfer Signed-off-by: Ben Pfaff Acked-by: Joe Stringer --- ofproto/netflow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ofproto/netflow.c b/ofproto/netflow.c index 19ca80fc4..35c8e331a 100644 --- a/ofproto/netflow.c +++ b/ofproto/netflow.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2014 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -180,7 +180,6 @@ netflow_expire(struct netflow *nf, struct netflow_flow *nf_flow, } /* Update flow tracking data. */ - nf_flow->created = 0; nf_flow->packet_count_off = expired->packet_count; nf_flow->byte_count_off = expired->byte_count; nf_flow->tcp_flags = 0; -- 2.20.1