From fab2ce03f40a38b021f2f26c4d08a8475ea15c3b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 10 Apr 2014 10:11:49 -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 | 1 - 1 file changed, 1 deletion(-) 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; -- 2.20.1