From: Ben Pfaff Date: Thu, 10 Apr 2014 17:11:49 +0000 (-0700) Subject: netflow: Correctly track flow creation time. X-Git-Tag: v2.1.1~8 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=fab2ce03f40a38b021f2f26c4d08a8475ea15c3b 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 --- diff --git a/ofproto/netflow.c b/ofproto/netflow.c index f79ad6ad0..4c47e75f2 100644 --- a/ofproto/netflow.c +++ b/ofproto/netflow.c @@ -270,7 +270,6 @@ netflow_expire__(struct netflow *nf, struct netflow_flow *nf_flow) } /* Update flow tracking data. */ - nf_flow->created = 0; nf_flow->packet_count = 0; nf_flow->byte_count = 0; nf_flow->tcp_flags = 0;