From e1f208cc4503bad45c1d8edc8bfed5fb433dd02f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 17 Mar 2014 14:32:16 -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 --- ofproto/netflow.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ofproto/netflow.c b/ofproto/netflow.c index 7729906c1..e9382afe9 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.43.0